Bug 459993 - Add support for internationalization (I18N)
Summary: Add support for internationalization (I18N)
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0.0M6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.0.0   Edit
Assignee: Steve Monnier CLA
QA Contact: Laurent Redor CLA
URL:
Whiteboard:
Keywords: triaged
Depends on: 470822 472057
Blocks: 494375 494376 494377
  Show dependency tree
 
Reported: 2015-02-16 05:53 EST by Pierre-Charles David CLA
Modified: 2016-06-24 08:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Charles David CLA 2015-02-16 05:53:49 EST
This is an umbrella ticket to add/improve support for i18n in Sirius. "Support i18n" is very broad and vague, but the focus is on allowing Sirius-based modelers to be internationalized. It does not at this point concern translating the VSM editor for example.

Some concrete actions (which will be treated in separate tickets):
* Externalize strings from the Sirius source code, in particular the one which appear in the end-user-visible UI parts (e.g. menus, dialogs, error messages), using the standard Eclipse tooling and localization framework.
* Provide a way for hard-coded (i.e. non-interpreted) strings in a VSM to be translatable if they appear in the UI. For example the names of tools which appear in the palette are not computed but should be translatable. We could introduce a convention similar to the one in Eclipse's plugin.xml & MANIFEST.MF: a tool name of the form "%newItem" in the VSM would, at runtime, be looked-up in a locale-specific .properties file.
Comment 1 Pierre-Charles David CLA 2015-02-16 10:15:07 EST
Moving to 3.0 to at least make some concrete moves in this direction.
Comment 2 Pierre-Charles David CLA 2015-06-23 11:37:47 EDT
Moving to 4.0. I'll create sub-tickets for smaller tasks, some of which may be feasible for 3.1.
Comment 3 Pierre-Charles David CLA 2015-07-16 03:50:08 EDT
(In reply to Pierre-Charles David from comment #0)
> * Provide a way for hard-coded (i.e. non-interpreted) strings in a VSM to be
> translatable if they appear in the UI. For example the names of tools which
> appear in the palette are not computed but should be translatable. We could
> introduce a convention similar to the one in Eclipse's plugin.xml &
> MANIFEST.MF: a tool name of the form "%newItem" in the VSM would, at
> runtime, be looked-up in a locale-specific .properties file.

For this part, http://eclipsesource.com/blogs/tutorials/how-to-customize-emf-forms/#localization seems to have some good ideas to take inspiration from (and maybe actual code too).
Comment 4 Eclipse Genie CLA 2016-01-28 12:22:51 EST
New Gerrit change created: https://git.eclipse.org/r/65386
Comment 5 Eclipse Genie CLA 2016-02-19 11:54:24 EST
New Gerrit change created: https://git.eclipse.org/r/66946
Comment 8 Eclipse Genie CLA 2016-04-15 04:35:17 EDT
New Gerrit change created: https://git.eclipse.org/r/70733
Comment 9 Eclipse Genie CLA 2016-04-15 04:35:21 EDT
New Gerrit change created: https://git.eclipse.org/r/70732
Comment 10 Eclipse Genie CLA 2016-04-15 04:35:32 EDT
New Gerrit change created: https://git.eclipse.org/r/70737
Comment 11 Eclipse Genie CLA 2016-04-15 04:35:33 EDT
New Gerrit change created: https://git.eclipse.org/r/70736
Comment 12 Eclipse Genie CLA 2016-04-15 04:35:35 EDT
New Gerrit change created: https://git.eclipse.org/r/70735
Comment 13 Eclipse Genie CLA 2016-04-15 04:35:36 EDT
New Gerrit change created: https://git.eclipse.org/r/70734
Comment 17 Eclipse Genie CLA 2016-05-03 03:35:37 EDT
New Gerrit change created: https://git.eclipse.org/r/71855
Comment 20 Eclipse Genie CLA 2016-05-03 12:46:08 EDT
New Gerrit change created: https://git.eclipse.org/r/71927
Comment 22 Pierre-Charles David CLA 2016-05-09 08:10:16 EDT
There's some followup work identified (for which we still need to create the tickets), but considering the scope we targeted for this version, the work is done.
Comment 23 Eclipse Genie CLA 2016-05-10 05:59:07 EDT
New Gerrit change created: https://git.eclipse.org/r/72386
Comment 24 Eclipse Genie CLA 2016-05-10 05:59:11 EDT
New Gerrit change created: https://git.eclipse.org/r/72385
Comment 27 Eclipse Genie CLA 2016-05-11 10:39:19 EDT
New Gerrit change created: https://git.eclipse.org/r/72521
Comment 28 Eclipse Genie CLA 2016-05-11 10:39:23 EDT
New Gerrit change created: https://git.eclipse.org/r/72520
Comment 31 Eclipse Genie CLA 2016-05-12 03:03:59 EDT
New Gerrit change created: https://git.eclipse.org/r/72591
Comment 33 Laurent Redor CLA 2016-05-26 10:35:43 EDT
Verified on Sirius 4.0.0 RC1 (4.0.0.201605180923)

Testing by modifying BasicFamily tool and launching a runtime with arguments "-nl en" or "-nl fr".
Comment 34 Eclipse Genie CLA 2016-05-26 10:50:25 EDT
New Gerrit change created: https://git.eclipse.org/r/73730
Comment 36 Eclipse Genie CLA 2016-05-31 04:07:11 EDT
New Gerrit change created: https://git.eclipse.org/r/74008
Comment 38 Pierre-Charles David CLA 2016-06-24 08:02:01 EDT
Available in Sirius 4.0.0.