Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problems with default i18n bundle(rap i18n)
Problems with default i18n bundle [message #653046] Tue, 08 February 2011 08:53 Go to next message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
Just made my first attempt to add multi-language support to my RAP app. I created a default bundle for English and then one for German.

messages.properties
messages_de.properties

My browser was setup to accept German and English in that order so I got the German texts. I then swapped the language prefs in the browser to put English first but I still got German. I tried closing the browser, restarting the app etc. but I still got German. Finally, I added a new bundle, messages_en.properties and now I get English.

Is this the correct behaviour? It is not what I expected...
Re: Problems with default i18n bundle [message #653219 is a reply to message #653046] Tue, 08 February 2011 21:43 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

Let me guess - your VM is set to German, right? What happens is that the
Browser asks for English, but RWT does not find a messages_en.properties
file. So it tries the default locale, in your case German and Bingo!
there is a messages_de.properties file. So you get German. If you want to
have English as your fallback, set your VM to English. Does this explain
the behavior?

Regards, Ralf

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problems with default i18n bundle [message #653276 is a reply to message #653219] Wed, 09 February 2011 07:52 Go to previous message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
Hi Ralf,

that makes more sense. I has assumed that when the browser language could not be served then the default bundle is always chosen.

Thanks for helping out!

Paul
Previous Topic:Customize maximize/minimize - button of ViewPart?
Next Topic:Understanding the RWT SettingStore
Goto Forum:
  


Current Time: Fri Oct 22 04:49:27 GMT 2021

Powered by FUDForum. Page generated in 0.01335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top