Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Switch language at runtime?
Switch language at runtime? [message #1065946] Fri, 28 June 2013 12:42 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 258
Registered: July 2012
Senior Member
We a re using the Eclipse *.properties mechanism for i18n.
The language is chose by passing the language as parameter: -nl en

Is is possible to switch the language at runtime?
Re: Switch language at runtime? [message #1065951 is a reply to message #1065946] Fri, 28 June 2013 13:12 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
the model is prepared to make this possible but the renderers currently
don't handle locale changes. So you'd have to retrigger the label update
yourself.

In the Part-UI you are responsible yourself for doing translations. If
you are using Equinox-NLS you would have to rebind the values. If you
are using what Dirk & myself have implemented you'll get the
translations reinjected.

http://blog.vogella.com/2013/06/25/eclipse-internationalization-part-34-migration-by-dirk-fauth/

Not sure Dirk has already explained how the reinjection would work.

Tom

On 28.06.13 14:42, Alex Kipling wrote:
> We a re using the Eclipse *.properties mechanism for i18n.
> The language is chose by passing the language as parameter: -nl en
>
> Is is possible to switch the language at runtime?
Previous Topic:creating part programmatically not working in kepler
Next Topic:Usage of @Preference in Kepler
Goto Forum:
  


Current Time: Tue Dec 23 03:52:21 GMT 2014

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

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