| Summary: | Prepare org.eclipse.emf.ecp.edit and org.eclipse.emf.ecp.edit.swt for I18N | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] ECP | Reporter: | Markus Knauer <mknauer> | ||||||
| Component: | Common | Assignee: | Markus Knauer <mknauer> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | eneufeld, mkoegel | ||||||
| Version: | 1.0.0 | ||||||||
| Target Milestone: | 1.1.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Markus Knauer
Created attachment 233278 [details]
I18N for actions and control packages of ECP SWT bundle
This little patch...
* removes and adds NON-NLS markers where appropriate
* externalizes strings and
* adds messages.properties files to the action and to the controls packages.
If this patch looks good to you, I would invest the time to work on the remaining Java packages and the remaining strings in this bundle.
I've seen many duplicate strings but I think this is a different issue.
Thank you for your time and effort! The patch looks good to me. Awaiting final contribution...;) One additional requirement that I like to address is the internationalization in our RAP multi-user environment. The current patch includes changes required for the standard RCP use-case and uses the static initialization of the strings, in RAP we need to bind the strings dynamically in a session specific way [1]. We need to discuss how we can solve this in a single-sourced way that works in both, RCP and RAP, environments. I'll work on a draft that we can use for further discussion. [1] http://eclipse.org/rap/developers-guide/devguide.php?topic=internationalization.html Sure, RAP Support is also important to us. (In reply to comment #3) > One additional requirement that I like to address is the > internationalization in our RAP multi-user environment. > > The current patch includes changes required for the standard RCP use-case > and uses the static initialization of the strings, in RAP we need to bind > the strings dynamically in a session specific way [1]. > > We need to discuss how we can solve this in a single-sourced way that works > in both, RCP and RAP, environments. I'll work on a draft that we can use for > further discussion. > > > [1] > http://eclipse.org/rap/developers-guide/devguide. > php?topic=internationalization.html Created attachment 233666 [details]
I18N for all Java packages in o.e.emf.ecp.edit, o.e.emf.ecp.edit.swt
This patch includes the first out of two steps that are required to enable I18N for the bundles org.eclipse.emf.ecp.edit and org.eclipse.emf.ecp.edit.swt. As discussed offline, it uses the standard Eclipse RCP method for I18N with static initializers.
(
Note that I had to ignore whitespace characters when applying this patch with
git am --ignore-whitespace 0001-Bug-412592-Prepare-o.e.emf.ecp.edit-o.e.emf.ecp.edit.patch
)
The second step (i.e. a single sourced RCP + RAP solution) will follow at a later time, but for now I think that this is a good step forward.
We will review and apply the patch, thank you very much for your time and effort to make this great contribution! I opened a follow-up bug to track the further progress on single sourcing I18N: https://bugs.eclipse.org/bugs/show_bug.cgi?id=413446 (In reply to comment #5) > Created attachment 233666 [details] > I18N for all Java packages in o.e.emf.ecp.edit, o.e.emf.ecp.edit.swt > > This patch includes the first out of two steps that are required to enable > I18N for the bundles org.eclipse.emf.ecp.edit and > org.eclipse.emf.ecp.edit.swt. As discussed offline, it uses the standard > Eclipse RCP method for I18N with static initializers. > > ( > Note that I had to ignore whitespace characters when applying this patch with > git am --ignore-whitespace > 0001-Bug-412592-Prepare-o.e.emf.ecp.edit-o.e.emf.ecp.edit.patch > ) > > The second step (i.e. a single sourced RCP + RAP solution) will follow at a > later time, but for now I think that this is a good step forward. applied patch in commit b9960ddddc88f1617e8787973c99c487da06883c closed |