Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Scout i18n
Scout i18n [message #832106] Thu, 29 March 2012 15:29 Go to next message
Adrian Moser
Messages: 67
Registered: March 2011
Member
I would like to force a certain language in Eclipse Scout.
In my ClientSession.execLoadSession(), I do:

setLocale(new Locale("en"));


Is this the correct way? For some reasons, only the search forms and some other stuff are translated, but not everything. For example the menues and the outline tree are not translated.
Re: Scout i18n [message #832107 is a reply to message #832106] Thu, 29 March 2012 15:33 Go to previous messageGo to next message
Adrian Moser
Messages: 67
Registered: March 2011
Member
I probably just solved it... I guess
setLocale(new Locale("en"));

has to be one of the first statements, especially before setDesktop(new Desktop()). It seems to work.
Re: Scout i18n [message #832114 is a reply to message #832107] Thu, 29 March 2012 15:42 Go to previous messageGo to next message
Adrian Moser
Messages: 67
Registered: March 2011
Member
Perhaps anyone can explain the difference between those two statements, do I need both in ClientSession.execLoadSession()?
setLocale(locale);
LocaleThreadLocal.set(locale);
Re: Scout i18n [message #832220 is a reply to message #832106] Thu, 29 March 2012 19:04 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan Motsch
Messages: 100
Registered: March 2010
Senior Member
Basically if you want to start a java app in a language just start it with the system properties in your product configurations "Launching" Tab.
-Duser.language=en
-Duser.country=US


Re: Scout i18n [message #832418 is a reply to message #832220] Fri, 30 March 2012 01:39 Go to previous messageGo to next message
Adrian Moser
Messages: 67
Registered: March 2011
Member
Yes, sure. But sometimes it is required to set a language dynamically from a user profile stored in database or LDAP.
Re: Scout i18n [message #915416 is a reply to message #832220] Mon, 17 September 2012 04:31 Go to previous message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 657
Registered: October 2011
Senior Member
Ivan Motsch wrote on Fri, 30 March 2012 01:04
Basically if you want to start a java app in a language just start it with the system properties in your product configurations "Launching" Tab.
-Duser.language=en
-Duser.country=US


We have tried this, and we were not really successful.
At the end, we have added:
osgi.nl=de


It seems to work.

Could you explain the difference? What is better?
Previous Topic:Swing client change Eclipse Scout text
Next Topic:Scout Juno Nightly
Goto Forum:
  


Current Time: Fri Aug 22 19:38:34 EDT 2014

Powered by FUDForum. Page generated in 0.01945 seconds