Changing the language dynamically
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Changing the language dynamically




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Changing the language dynamically  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-06 06:36 AM

Hi,

I'm using Websphere Portal 5.0.2. I have an link in my theme (up in the bann
er) 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 browse
r's locale.

Thanks.






[ Post a follow-up to this message ]



    Re: Changing the language dynamically  
Pål Jørgensen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-26-06 06:23 PM

Hi,

We had a problem related to this.

Our problem was that we wanted the portal to ignore whatever the preffered l
anguage 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 Serve
r, 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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:55 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register