internationalization [message #901495] |
Mon, 13 August 2012 07:26  |
Eclipse User |
|
|
|
Hi everyone,
i'm currently dealing with i18n in GMF and i need to know whether
it is possible to externalize the strings of the labels (name and text attributes) in gmfgraph into the message.properties file. If so, could anybody give me some instructions on how this can be done?
Regards,
Chris
[Updated on: Mon, 13 August 2012 08:32] by Moderator Report message to a moderator
|
|
|
Re: internationalization [message #901568 is a reply to message #901495] |
Mon, 13 August 2012 13:09   |
Eclipse User |
|
|
|
Maybe I've expressed myself incorrectly. The text/name attributes for the label in the properties view should be variable. For example, I've seen in the gmfgen file a property 'content extension name' which has the value '%navigatorContentName'. The percent sign indicates that it's a variable name declared in the plugin.properties, e.g. 'navigatorContentName=*.mmd diagram contents'. However, I want GMF to extract the label strings as variables into the generated messages.properties file in the diagram package but the percent syntax doesn't work for gmfgraph figures.
[Updated on: Mon, 13 August 2012 13:10] by Moderator Report message to a moderator
|
|
|
Re: internationalization [message #902153 is a reply to message #901568] |
Thu, 16 August 2012 07:16  |
Eclipse User |
|
|
|
Ok, got it. For those who are curious: I had to extend the Externalize.xpt file and to define the i18n methods (accessors and values methods)in the NodeEditPart.xpt.
|
|
|
Powered by
FUDForum. Page generated in 0.03264 seconds