WebSphere Portal Server - Changind the locale for the session

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > July 2005 > Changind the locale for the session





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Changind the locale for the session

2005-07-21, 2:53 am

Hi all,
I found the link to change the locale here :
http://publib.boulder.ibm.com/pvc/w.../adchglang.html

So, in a jsp of a portlet, I wrote this :
<a href="<wps:url command="ChangeLanguage"><wps:urlParam name="locale" value="ar"/></wps:url><bean:message key="arabic"/></a>
<a href="<wps:url command="ChangeLanguage"><wps:urlParam name="locale" value="fr"/></wps:url><bean:message key="french"/></a>

Clicking on the french link works well, but clicking on the arabic one doesn't do anything. I don't understand why. Any idea ?
jruske

2005-07-21, 6:03 pm

While http://publib.boulder.ibm.com/pvc/w...s/adintern.html suggests that "ar" should work just fine, I'd check to make sure you've loaded the associated language resource bundle and that the browser you are testing with accepts it.


Presuming it is not working in the sense that Arabic doesn't show up.

J Ruske

2005-07-22, 2:58 am

In fact, I'm sure that arabic is supported. This is how I test :
If my prefered language (in my profile) is french
- I put that my prefered language is arabic in my profile
- I notice that I have to disconnect then reconnect to see the portal in arabic
- I click on the french link and the portal is in french
- I click on the arabic link and the portal is still in french

If my prefered language (in my profile) is arabic
- I put that my prefered language is french in my profile
- I notice that I do not have to disconnect then reconnect to see the portal in french
- I click on the arabic link and the portal is still in french

It's curious
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com