Hi Marieke,
To force a component to be rendered in another locale (in this case your
e-mail), you can override getLocale() from the top-most component that
is used to render the e-mail.
Regards,
Erik.
On Tue, Jun 8, 2010 at 3:30 AM, Marieke
Vandamme<[email protected]> wrote:
Hello,
Is it possible to use the getString or some other kind of function to get
translation not in the language of the session, but one that is different?
We need this to send email, but this email is to our internal employees, so
needs to be in language other than the one that is requesting something.
Now I save the locale from the session into a temp-locale variable, and
change the locale from the session to the email-language. Than I can use the
getString function. Afterwards I put the temp-locale variable back into the
session. I don't find this a perfect solution, so I have you guys have some
better alternative.
Thanks for any help ! Marieke
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/get-resource-translation-with-specific-locale-tp2247162p2247162.html
--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]