Taito Horiuchi wrote:
Hi,

Hi Taito,


Thanks for your information.
I tried all sorts of variants with no result.

:-(

While I don't know the solution to your problem (sorry)
here is what you could try next:

1. ask this on the plone-i18n list if you haven't done that yet.
2. browse through the tests of the translation machinery

HTH

        Raphael

PS: a wild guess that's most probably way off: could it be that
the language negotiator of the language tool tricks you here?
Maybe you have to change its negotiation policy before your
explicit settings take effect? - As I said: just a guess.


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
    [email protected]
    <mailto:[email protected]>
    http://lists.plone.org/mailman/listinfo/product-developers



------------------------------------------------------------------------

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to