> -----Urspr�ngliche Nachricht----- > Von: Youssef Mohammed > [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 22. Oktober 2003 12:26 > An: Jetspeed Users List > Betreff: RE: How to determine language in a portlet? > > > Try > org.apache.turbine.services.localization.LocalizationTool.getL > ocale( ) > And/or > org.apache.turbine.services.localization.LocaleDetector.getLcale() > > one of them sould be working AFAIK
According to the documentation, these to methods also refer to the Accept-Language header of the Request, which will not change when the user selects a language by means of the select language portlet, which simply adds something like "js_language=en" to the query data. A look at JetspeedSessionValidator.java finally reveals that the language and locale data is stored in the user object, so what I actually want is rundata.getUser().getTemp( "locale" ). Thanks to everyone who replied to my queries. Regards Michael Burschik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
