Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » NLS problem: switching locales
NLS problem: switching locales [message #129691] Thu, 23 April 2009 09:28 Go to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050905050907080004030107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Gentlemen,

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).

Thanks,
Dmitry

--------------050905050907080004030107
Content-Type: image/png;
name="partially-localised.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="partially-localised.png"

iVBORw0KGgoAAAANSUhEUgAAALkAAAB7CAMAAAAfU9HRAAAAAXNSR0IArs4c 6QAAAARnQU1B
AACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgA ABdwnLpRPAAA
AwBQTFRFAAAABFQECmEKGHEcAGExAGIxAGw2B3c/MnY4O3U7CHhAS0tNXVlt XVtuYl90ZWVo
ZmZ7bWl9bm1/eHh8MWrFa2yEcXKLdHSIeHuDenuQCoMLE5kTB6YHJYQlL5Ew DoFIEINJIo5X
JI9ZL5diMZhkANUAAOAAAOQAAOwAAPcAAP8ASpBNTZNTUZlWXpJeXpdeQqBx XKFhYZ9kZqZq
bapwXNJZYdJeZdNid9R0AIDABoTBEojEHI7HKJPKM5rNPp/Qf4GJfoGYSaTS VKrVX6/XaLTZ
c7jceLzdfL3ef7/fgNV8gYSOhYeMiIiMg4eSgIadhIaehYiShYmUhoqViIuW iYyXio2YjI+Y
jpGdlJSUlpaaiI6ljpavlJeimJWlmZenm56pm56qn56ukpu2g6+DmqS6oqK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xk4H0hl/glD
S69letBcig0/AwNADW0AemNw0BhLHfVaTQh+UyLHNsCnrw+I6eGsngFU/a2F 0bdbRYskNwYz
R4Xw9TTxD5aV3rcYI+YIldFCwg+g8PU0D+TGyGY1K8IIHTOMTArHLEyVffUl x9oral5PvAp1
exihEXnACkSaByyoh+IizT2IFLBLpHnAgnoozovmVVYW4pERHghq+wDmgbza ymJ3Ch/JGpG8
2sois3Nzg5JXWVmMZOiJtxE1t8jLriygS+DptyHJq6wsaHHUmOSVVxa4MDUy BxtS88orC+qR
wb7GJPdwW6iDi4f5vA5UXqqMyL2oFKxPpHmwenopTWj+H1tKF9BqN/fAAAAA AElFTkSuQmCC

--------------050905050907080004030107--
Re: NLS problem: switching locales [message #129841 is a reply to message #129691] Thu, 23 April 2009 13:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 Go to previous messageGo to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
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).
Re: NLS problem: switching locales [message #130083 is a reply to message #130070] Fri, 24 April 2009 09:57 Go to previous message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Ralf,

Just now I've tried deploying my application in Tomcat. And it works as
desired. It obeys to locale I set in my browser rather than system
default one.

At least, this problem is not urgent to me anymore.

Thanks
Previous Topic:Comparison of RAP vs GWT
Next Topic:Problem with Job and JobManagerAdapter
Goto Forum:
  


Current Time: Wed Feb 01 22:41:33 GMT 2023

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

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

Back to the top