Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » change locale at runtime
change locale at runtime [message #541474] Mon, 21 June 2010 05:44 Go to next message
Eclipse UserFriend
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 06:00 Go to previous messageGo to next message
Eclipse UserFriend
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 06:11 Go to previous messageGo to next message
Eclipse UserFriend
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 06:25 Go to previous messageGo to next message
Eclipse UserFriend
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 07:05 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:34:39 EDT 2025

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

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

Back to the top