[Product-Developers] Sending mails in different languages at once.

Taito Horiuchi dev at abita.fi
Sun Feb 8 02:46:30 UTC 2009


Hi,

I would like to send e-mails from Plone using zpt in different languages,
 like for users with different preferred languages, at once.

I tried to do it like below:

language_tool = getToolByName(context, "portal_languages")
self.request.set('set_language', 'en')
language_tool.setLanguageBindings()

It seems to work partially for ATContentType which is translated with
LinguaPlone,
but no effect to translations from po files.

Any clues to set languages to send e-mails would be helpful.

Version I used is Plone-3.2.1.

Thanks,

Taito Horiuchi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090208/c694b2cf/attachment.html>


More information about the Product-Developers mailing list