Thread: Re: how does lenya handle the locale setting?
Re: how does lenya handle the locale
setting?
2007-01-23 10:47:04
Joern Nettingsmeier schrieb:
[...]
>> Usually you have two i18n transformer configurations in your project,
>> one for the Lenya GUI and the other for the i18n of page contents
>> (i.e., to add internationalized text snippets to the page, like
>> "Read more" / "Lesen Sie mehr" below a teaser). The latter uses the
>> locale of the requested page.
>
> so, to rephrase my question: how do i change the locale of a session
> when a user clicks on a flag to change the language, so that menus etc.
> are displayed in the new language?
I don't think it is possible to change the request locale.
You could use a custom session attribute instead which you
set using the SessionAction or a custom "SetLanguageAction".
There's a SessionAttributeOutputModule too, but I haven't
used it yet.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org