Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 400232

Summary: Unexternalized strings on UI Theme and Editor Theme pages
Product: [ECD] Orion Reporter: Kit Lo <kitlo>
Component: ClientAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, keithc, malgorzata.tomczyk, mamacdon, Michael_Rennie, Silenio_Quarti, simon_kaegi
Version: 2.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Editor Theme
none
Theme Selection
none
Theme names.png
none
400232_fixed_7.0.0.v20140904-0231
none
400232_fixed_translations none

Description Kit Lo CLA 2013-02-07 11:13:52 EST
Created attachment 226710 [details]
Editor Theme

Unexternalized strings on UI Theme and Editor Theme pages
Comment 1 Kit Lo CLA 2013-02-12 08:35:22 EST
Created attachment 226917 [details]
Theme Selection

Strings in theme selection popup in editor are unexternalized. Are they using the same strings from the settings page?
Comment 2 Curtis Windatt CLA 2014-08-14 14:00:40 EDT
As far as I can tell, all of the editor/theme related settings are NLS'd correctly in the following two files.  Please reopen if any have been missed.

bundles / org.eclipse.orion.client.ui / web / orion / widgets / settings / EditorSettings.js

bundles / org.eclipse.orion.client.ui / web / orion / settings / nls / root / messages.js
Comment 3 Kit Lo CLA 2014-08-15 10:36:18 EDT
Created attachment 246045 [details]
Theme names.png

Curtis, most of the strings reported above are now externalized, except the theme names. I imagine some countries may want to translate the theme names like "Green Zone", "Red".
Comment 4 Kit Lo CLA 2014-08-15 10:36:50 EDT
reopen
Comment 6 Kit Lo CLA 2014-08-26 13:48:01 EDT
Michael, I downloaded Orion server I20140826-0218, cleared all browser cache, cleared all local storage, deleted the server workspace. Installed a language pack with the theme names translated. However, the dropdown list is still showing the theme names in English. Can you investigate?
Comment 7 Michael Rennie CLA 2014-08-29 10:22:41 EDT
Looks like (In reply to Kit Lo from comment #6)
> Michael, I downloaded Orion server I20140826-0218, cleared all browser
> cache, cleared all local storage, deleted the server workspace. Installed a
> language pack with the theme names translated. However, the dropdown list is
> still showing the theme names in English. Can you investigate?

Fixed in: http://git.eclipse.org/cgit.cgi/orion/org.eclipse.orion.client.git/commit/?id=f2387f84ebaf88f67605cedfbafadcfd475b9fe3
Comment 8 Kit Lo CLA 2014-08-29 10:51:56 EDT
Michael, those editor themes you just fixed in comment 7 were indeed unexternalized. Almost forgot about that. However, for the windows themes your fixed earlier, we had them translated, generated language packs, cleared all browser cache, cleared all local storage, deleted the server workspace, launched the latest server. However, we still did not see the translations loaded. Not sure why.
Comment 9 Mark Macdonald CLA 2014-09-03 10:27:09 EDT
As I mentioned to Kit via email:

The trouble in Comment 8 likely happens because theme names (like all theme data) get cached in localStorage. If an English translation is loaded when you first land on the Settings page, the English names will persist, even after installing another language pack.

So to observe the translated theme names, you have to follow this order of steps:
1. Install Orion UI language pack plugin for your language
2. Clear localStorage
3. Go to the Settings page, click UI Theme

This should display the translated names from the language pack.
Comment 10 Keith Chuang CLA 2014-09-05 02:36:03 EDT
(In reply to Mark Macdonald from comment #9)
> As I mentioned to Kit via email:
> 
> The trouble in Comment 8 likely happens because theme names (like all theme
> data) get cached in localStorage. If an English translation is loaded when
> you first land on the Settings page, the English names will persist, even
> after installing another language pack.
> 
> So to observe the translated theme names, you have to follow this order of
> steps:
> 1. Install Orion UI language pack plugin for your language
> 2. Clear localStorage
> 3. Go to the Settings page, click UI Theme
> 
> This should display the translated names from the language pack.

Verified in 7.0.0.v20140904-0231, I'm able to see the strings are mocked now. will keep you updated if the translations can be picked up correctly.
Comment 11 Keith Chuang CLA 2014-09-05 02:36:40 EDT
Created attachment 246753 [details]
400232_fixed_7.0.0.v20140904-0231
Comment 12 Keith Chuang CLA 2014-09-09 08:00:50 EDT
(In reply to Keith Chuang from comment #10)
> (In reply to Mark Macdonald from comment #9)
> > As I mentioned to Kit via email:
> > 
> > The trouble in Comment 8 likely happens because theme names (like all theme
> > data) get cached in localStorage. If an English translation is loaded when
> > you first land on the Settings page, the English names will persist, even
> > after installing another language pack.
> > 
> > So to observe the translated theme names, you have to follow this order of
> > steps:
> > 1. Install Orion UI language pack plugin for your language
> > 2. Clear localStorage
> > 3. Go to the Settings page, click UI Theme
> > 
> > This should display the translated names from the language pack.
> 
> Verified in 7.0.0.v20140904-0231, I'm able to see the strings are mocked
> now. will keep you updated if the translations can be picked up correctly.

The translations can be loaded now, thank you very much!


Hi Kit, Would you please help update the status accordingly? Thank you.
Comment 13 Keith Chuang CLA 2014-09-09 08:01:12 EDT
Created attachment 246881 [details]
400232_fixed_translations