RAP Locale - not working on Chrome/Firefox [message #1053727] |
Tue, 07 May 2013 12:04 |
|
Perhaps someone could help me identify what I'm doing wrong here...
I'm using:
RWT.getUISession().getLocale()
...to get the session's Locale, but it is always coming back with "en_GB" on Chrome and Firefox, whereas IE seems to give the correct current Locale according to the PC's settings e.g. switched to "DE German (Switzerland)" using the Windows Locale switcher, IE gives "de_CH" correctly, but Chrome/Firefox still give "en_GB". This is on Win7.
What is the correct process for changing Locale that RAP would pick up?
I tried using Chrome's chrome://settings/languages page, and the menus/options within Chrome all take on the new language, but RAP doesn't see it.
Thanks, John
---
Just because you can doesn't mean you should
|
|
|
Re: RAP Locale - not working on Chrome/Firefox [message #1057991 is a reply to message #1053727] |
Fri, 10 May 2013 11:25 |
|
Hi Ralf,
Thanks for your 53 replies (!!)
I've not really figured this out yet, as I thought that if I changed the Locale settings on the PC, then restart Chrome, it would just pick up the new Locale, but it doesn't seem to be that simple. I suspect that Chrome is caching something, even remember between instances of the browser. A reboot of the PC after a Locale change works ok, but not just a close of Chrome followed by opening a new one. Anyway, I guess it is not too important since most users don't switch between Locales too often (I was only doing it for testing my support on Internationalisation in my application).
Interestingly, I tried the same thing using Chrome on my Nexus Android device, and this only picked up the Locale change after doing a Force Stop of Chrome. That makes sense to me.
Anyway, no worries - I just thought it may be useful to understand when Locale changes are picked up by the various different browsers.
Cheers, John
---
Just because you can doesn't mean you should
|
|
|
|
Powered by
FUDForum. Page generated in 0.02822 seconds