01-30-07 12:30 PM
Websphere Portal Server supports the following command which you may insert
in your theme or somewhere in the jsp.
<wps:url command="ChangeLanguage"><wps:urlParam name="locale" value="fr"/
></wps:url>
<wps:url command="ChangeLanguage"><wps:urlParam name="locale"
value="fr_CH"/></wps:url>
Put the above command in anchor tag of html.
When user clicks on above provided links, the entire locale of the portal se
rver will be changed.
You can query the locale simply by calling PortletRequest objects getLocale(
) method. Or if you want to get simply the user locale try to get 'accept-la
nguage' header from request.
[ Post a follow-up to this message ]
|