|
Re: NLS problem: switching locales [message #129841 is a reply to message #129691] |
Thu, 23 April 2009 13:28 |
|
Hi Dmitry,
as you already pointed out, there seem to be two different problems:
missing platform localization and stale translations that are not updated.
For the platforms part, do you have any language packs installed?
Translations of the platform are not included in RAP.
For the contents that are not refreshed (German in your case), are these
contents derived from extensions? If so, do you have the
org.eclipse.rap.equinox.registry patch fragment in your runtime
environment? Without this one, the extension registry is not
multi-locale capable.
Regards, Ralf
> We have 6 language packs bundled as fragments.
>
> It seems that the Workbench is still caching some of its resources. It
> results in a nasty behaviour where user sees the UI parts in different
> languages.
>
> To reproduce this, please start one session with some language set as
> preferred in your browser. Then change that language and restart your
> session.
>
> The attached picture shows three languages: English (unlocalised
> platform parts), German (first load) and Japanese (second load).
|
|
|
Re: NLS problem: switching locales [message #130070 is a reply to message #129841] |
Fri, 24 April 2009 09:31 |
Dmitry Pryadkin Messages: 146 Registered: July 2009 |
Senior Member |
|
|
Hello Ralf,
The German content is derived from extensions (plugin.xml /
plugin.properties), translated files included in the corrersponding
fragment.
I do have org.eclipse.rap.equinox.registry, osgi says this:
117 RESOLVED org.eclipse.rap.equinox.registry_1.2.0.qualifier
Master=112
The application is running from Eclipse 3.4.2. Target platform is 1.2m6.
JDK 1.6.7, Windows XP.
I've found another case of the problem. If you can still see my picture.
There is a menu, it has a menu item localised in German as Verbinden.
The menu is defined in plugin.xml as follows:
<extension point="org.eclipse.ui.popupMenus">
<objectContribution adaptable="false"
id="connections.objectContribution"
objectClass="models.ConnectionModel">
<action class="connections.ActivateConnectionAction"
definitionId="actions.connect"
enablesFor="1"
id="actions.ActivateConnectionAction"
label="%actions.activateConnection"
menubarPath="launch"/>
....
</extension>
%actions.activateConnection stands for "Verbinden" in German, and
"Connect" in English.
Initially my browser was set to German language. Windows XP had German
default locale too. I run my Application and I see that everything is in
German, as expected.
If I change Windows locale to English and then reboot, I see that
"Verbinden" is now spelled as "Connect".
Ralf Sternberg wrote:
> Hi Dmitry,
>
> as you already pointed out, there seem to be two different problems:
> missing platform localization and stale translations that are not updated.
>
> For the platforms part, do you have any language packs installed?
> Translations of the platform are not included in RAP.
>
> For the contents that are not refreshed (German in your case), are these
> contents derived from extensions? If so, do you have the
> org.eclipse.rap.equinox.registry patch fragment in your runtime
> environment? Without this one, the extension registry is not
> multi-locale capable.
>
> Regards, Ralf
>
>> We have 6 language packs bundled as fragments.
>>
>> It seems that the Workbench is still caching some of its resources. It
>> results in a nasty behaviour where user sees the UI parts in different
>> languages.
>>
>> To reproduce this, please start one session with some language set as
>> preferred in your browser. Then change that language and restart your
>> session.
>>
>> The attached picture shows three languages: English (unlocalised
>> platform parts), German (first load) and Japanese (second load).
|
|
|
|
Powered by
FUDForum. Page generated in 0.02177 seconds