Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Scout i18n
Scout i18n [message #832106] Thu, 29 March 2012 19:29 Go to next message
Adrian MoserFriend
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 19:33 Go to previous messageGo to next message
Adrian MoserFriend
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 19:42 Go to previous messageGo to next message
Adrian MoserFriend
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 23:04 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
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 05:39 Go to previous messageGo to next message
Adrian MoserFriend
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 08:31 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
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: Thu Apr 25 08:40:56 GMT 2024

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

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

Back to the top