You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by madhuri vedula <ve...@yahoo.com> on 2003/04/11 07:24:32 UTC
setting language/locale in Jetspeed
Hi,
I am using jetspeed1.4b3 version and trying to make
localization work with JSP templates. I made the
following changes.
1. Created the list of
Jetspeedlocalization_language.properties files to
reside in the classes directory
2. Updated Turbine properties to find the properties
files.
Also set the default language and country
locale.default.bundles=xx.path.modules.localization.ASPLocalization
locale.default.language=en
locale.default.country=US
The JSP can find the default properties file and
displays the values in the JSP using the lines
<%@ taglib
uri='/WEB-INF/templates/jsp/tld/template.tld'
prefix='jetspeed' %>
<jetspeed:l10n key="SHOW_VALUE" />
Now, if I go and change the language in the browser to
italian , the JSP does not pick up the right
properties file values.
When I print the fllowing it shows that italian is
current langague ..
System.out.println("lang in header
is"+data.getRequest().getHeader("Accept-Language"));
System.out.println("request locale
is"+data.getRequest().getLocale());
System.out.println("jetspeed locale info is" +
data.getLocale().getLanguage());
What could be the possible reason why the JSP is still
picking up the default prop file and not accordinly to
the language selection made in the browser? I was
testing it on IE 5.5.
Any info/pointers provided would be really helpful.
Thanks in advance,
-Madhuri
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
RE: setting language/locale in Jetspeed
Posted by Mark Orciuch <ma...@ngsltd.com>.
My advice is to wait for Jetspeed 1.4 Beta 4 - it has vastly improved
internationalization support.
Best regards,
Mark Orciuch - morciuch@apache.org
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/
> -----Original Message-----
> From: madhuri vedula [mailto:vedulax@yahoo.com]
> Sent: Friday, April 11, 2003 12:25 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: setting language/locale in Jetspeed
>
>
> Hi,
>
> I am using jetspeed1.4b3 version and trying to make
> localization work with JSP templates. I made the
> following changes.
>
> 1. Created the list of
> Jetspeedlocalization_language.properties files to
> reside in the classes directory
> 2. Updated Turbine properties to find the properties
> files.
> Also set the default language and country
> locale.default.bundles=xx.path.modules.localization.ASPLocalization
> locale.default.language=en
> locale.default.country=US
>
> The JSP can find the default properties file and
> displays the values in the JSP using the lines
> <%@ taglib
> uri='/WEB-INF/templates/jsp/tld/template.tld'
> prefix='jetspeed' %>
>
> <jetspeed:l10n key="SHOW_VALUE" />
>
> Now, if I go and change the language in the browser to
> italian , the JSP does not pick up the right
> properties file values.
> When I print the fllowing it shows that italian is
> current langague ..
>
> System.out.println("lang in header
> is"+data.getRequest().getHeader("Accept-Language"));
> System.out.println("request locale
> is"+data.getRequest().getLocale());
> System.out.println("jetspeed locale info is" +
> data.getLocale().getLanguage());
>
> What could be the possible reason why the JSP is still
> picking up the default prop file and not accordinly to
> the language selection made in the browser? I was
> testing it on IE 5.5.
>
> Any info/pointers provided would be really helpful.
> Thanks in advance,
>
> -Madhuri
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org