| Summary: | Plugins should consume their own i18n framework | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Maciej Bendkowski <maciej.bendkowski> |
| Component: | Client | Assignee: | Project Inbox <orion.client-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | bartosz.grabski, konradk, libingw, mamacdon.bugs, mamacdon, Szymon.Brandys |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Maciej Bendkowski
Plugins are already responsible for their i18n of string required at run time by plugin code (e.g. error messages). The problem is with strings contributed to orion with service's description (command names, tooltips, etc.). These are contributed as static and cached by Orion. In eclipse this is distinction between java message bundles used by plug-in's and plugin.xml for localizing plugin.xml. The framework reposinble for reading plugin.xml is responsible for accessing plugin.properties. It seems Orion uses the same approach, but there is problem with implementation. The bundles are loaded from the wrong domain, and even orion.i18n.message is not called for the default language. (In reply to Konrad Kolosowski from comment #1) > The problem is with strings contributed to orion with service's description > (command names, tooltips, etc.). These are contributed as static and cached by > Orion. This is a good point. If the Orion UI does not lookup messages at runtime, we must make it part of the plugin contract that whenever the locale changes, plugin data is refreshed. This would permit the plugin to re-register with the correct translations. (In reply to Mark Macdonald from comment #2) > This is a good point. If the Orion UI does not lookup messages at runtime, > we must make it part of the plugin contract that whenever the locale > changes, plugin data is refreshed. This would permit the plugin to > re-register with the correct translations. Sounds good to me. Here's a link to the new way to do this... https://wiki.eclipse.org/Orion/Internationalization#Translating_a_plugin |