Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » change locale at runtime
change locale at runtime [message #541474] Mon, 21 June 2010 09:44 Go to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
Hi there,

is it possible to switch the locale at runtime within RCP apps?

Sven
Re: change locale at runtime [message #541479 is a reply to message #541474] Mon, 21 June 2010 10:00 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Not really because most parts of the UI don't listen to such changes
(e.g. all the contributions like views, menus, ...).

Tom

Am 21.06.10 11:44, schrieb Sven Krause:
> Hi there,
>
> is it possible to switch the locale at runtime within RCP apps?
>
> Sven
Re: change locale at runtime [message #541480 is a reply to message #541479] Mon, 21 June 2010 10:11 Go to previous messageGo to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
Hi Tom,

thats very bad. Is there no concept for such things?

Sven
Am 21.06.2010 12:00, schrieb Tom Schindl:
> Not really because most parts of the UI don't listen to such changes
> (e.g. all the contributions like views, menus, ...).
>
> Tom
>
> Am 21.06.10 11:44, schrieb Sven Krause:
>> Hi there,
>>
>> is it possible to switch the locale at runtime within RCP apps?
>>
>> Sven
>
Re: change locale at runtime [message #541489 is a reply to message #541480] Mon, 21 June 2010 10:25 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well in 3.6 the extension registry got enhanced to deal with multiple
locales at once but the workbench *doesn't* has a concept that listens
to changes of the locale and refresh the (complete) UI.

When looking at e4 the situation is better (though we haven't
implemented NLS-stuff yet and probably won't in 4.0) the underlying
Application-Model is accessible to everyone and so updating the Labels
of Menus, ... is quite easy.

All you need to do in e4 is to traverse the Application-Model and look
for elements of Type MUILabel and set the new label-Attribute :-) but
I'm not sure e4 is an option for you.

Tom

Am 21.06.10 12:11, schrieb Sven Krause:
> Hi Tom,
>
> thats very bad. Is there no concept for such things?
>
> Sven
> Am 21.06.2010 12:00, schrieb Tom Schindl:
>> Not really because most parts of the UI don't listen to such changes
>> (e.g. all the contributions like views, menus, ...).
>>
>> Tom
>>
>> Am 21.06.10 11:44, schrieb Sven Krause:
>>> Hi there,
>>>
>>> is it possible to switch the locale at runtime within RCP apps?
>>>
>>> Sven
>>
>
Re: change locale at runtime [message #541493 is a reply to message #541489] Mon, 21 June 2010 11:05 Go to previous message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
Hi Tom,

Thanks for explanation. That sounds much better. It's always a pleasure
to talk with you guys...

Sven

Am 21.06.2010 12:25, schrieb Tom Schindl:
> Well in 3.6 the extension registry got enhanced to deal with multiple
> locales at once but the workbench *doesn't* has a concept that listens
> to changes of the locale and refresh the (complete) UI.
>
> When looking at e4 the situation is better (though we haven't
> implemented NLS-stuff yet and probably won't in 4.0) the underlying
> Application-Model is accessible to everyone and so updating the Labels
> of Menus, ... is quite easy.
>
> All you need to do in e4 is to traverse the Application-Model and look
> for elements of Type MUILabel and set the new label-Attribute :-) but
> I'm not sure e4 is an option for you.
>
> Tom
>
> Am 21.06.10 12:11, schrieb Sven Krause:
>> Hi Tom,
>>
>> thats very bad. Is there no concept for such things?
>>
>> Sven
>> Am 21.06.2010 12:00, schrieb Tom Schindl:
>>> Not really because most parts of the UI don't listen to such changes
>>> (e.g. all the contributions like views, menus, ...).
>>>
>>> Tom
>>>
>>> Am 21.06.10 11:44, schrieb Sven Krause:
>>>> Hi there,
>>>>
>>>> is it possible to switch the locale at runtime within RCP apps?
>>>>
>>>> Sven
>>>
>>
>
Previous Topic:Does not match outer scope rule error
Next Topic:Excluded files from build path get exported to jar
Goto Forum:
  


Current Time: Fri Apr 19 21:47:45 GMT 2024

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

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

Back to the top