WebSphere Portal Server - Changing the language dynamically

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > September 2006 > Changing the language dynamically





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 Changing the language dynamically

2006-06-21, 1:36 am

Hi,

I'm using Websphere Portal 5.0.2. I have an link in my theme (up in the banner) that changes the language of the locale. I'm using this code

<td>
<wps:urlParam name="locale" value="en"/></wps:url>">English
<wps:urlParam name="locale" value="de"/></wps:url>">Deutsch
</td>

Its working. But my problem is that the language occasionally switches back depending on the language of the browser's locale.

Can anyone help? I need to fix this problem asap without changing the browser's locale.

Thanks.

Pål Jørgensen

2006-09-26, 1:23 pm

Hi,

We had a problem related to this.

Our problem was that we wanted the portal to ignore whatever the preffered language in the browser is. When a user hit the page as an anynomous user, he should always see the norwegian version. I found this article:
http://www-128.ibm.com/developerwor...qbal_singh.html
... that didn't help a bit, since we want to have control over the language before the user logs in.

So, our solution was to add the following in the apache's (or IBM HTTP Server, if you like) httpd.conf :

RequestHeader set Accept-Language "no"

This line will set the http header's Accept-Language to no (norwegian), i.e. the browsers settings are overwritten.

I don't know if this is any help to you...

--------
Pål Jørgensen
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com