[Product-Developers] Sending mails in different languages at once.
Taito Horiuchi
dev at abita.fi
Mon Feb 9 22:13:12 UTC 2009
Hi,
Thanks for your information.
I tried all sorts of variants with no result.
I tried all sorts of variables:
I18N_LANGUAGE
LANGUAGE
LOCALIZER_LANGUAGE
HTTP_ACCEPT_LANGUAGE
HTTP_COOKIE
set_language
If you remember how you did it, please let me know.
Taito
I would like to send e-mails from Plone using zpt in different languages,
>>> like for users with different preferred languages, at once.
>>>
>>
>> Was has sending emails to do with ZPT?
>>
>
> I believe he uses page templates to render the mail body. If so then you
> should be able to set a variable on the request which indicates the
> language you want to use. I cannot recall the name of this variable.
>
> Then you do mail_text = context.mail_template(REQUEST=REQUEST) and you get
> the translated content.
>
> Hedley
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090210/bc55f0c7/attachment.html>
More information about the Product-Developers
mailing list