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 08:42 Go to next message
Alex Kipling is currently offline Alex Kipling
Messages: 246
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 09:12 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5249
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: Mon Jul 28 08:41:03 EDT 2014

Powered by FUDForum. Page generated in 0.02140 seconds