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

Bug 376148

Summary: Globalization of plugins
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: ClientAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 0.4   
Target Milestone: 0.5 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 374414, 375700    

Description Malgorzata Janczarska CLA 2012-04-05 04:55:25 EDT
We are using require.js for globalization of Orion. We should have a lighter technology that we could use in plugins.
Comment 1 Malgorzata Janczarska CLA 2012-04-05 13:25:23 EDT
The POC for globalization of plugins is in branch Bug376148. It has the same problems as in Bug 375700 so I wait with merging in until I get some review on Bug 375700.
I discovered that when locale changes plugins need to be reloaded. I opened bug 376207 for that.
Comment 2 Malgorzata Janczarska CLA 2012-04-17 10:17:37 EDT
I pushed changes that add string extrenalization for two plugins: pageLinksPlugin.html and landingPageTasksPlugin.html. There is a tool that does not require dojo or reqjire.js, but consumes the same message format as them.
Comment 3 Malgorzata Janczarska CLA 2012-05-21 16:12:10 EDT
The technology has changed and we need to change the loading of strings.
Comment 4 Malgorzata Janczarska CLA 2012-05-23 06:44:41 EDT
The solution here is easy, but I run out of time for it. I'll do it first thing in RC1.
Comment 5 Malgorzata Janczarska CLA 2012-05-30 06:45:03 EDT
We changed the approach. The plugins may now use our messages, if they know the exact messages file location. All plugin needs to supply is to add "nls" property with the messages module path, for instance "nls: 'orion/nls/messages'". If this property is added then "name" and "tooltip" are treated as messages ids instead of being displayed as they are.
This approach is used in plugins delivered with Orion. For other plugins they may use the same approach if Orion contains all messages they need. They as well may localize their messages as they want on their site, according the browser locale.
Bug 376207 is no longer blocking this task because messages are now localiezed on the client site.