Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » internationalization
internationalization [message #901495] Mon, 13 August 2012 07:26 Go to next message
Chris B. is currently offline Chris B.Friend
Messages: 37
Registered: November 2011
Member
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]

Report message to a moderator

Re: internationalization [message #901568 is a reply to message #901495] Mon, 13 August 2012 13:09 Go to previous messageGo to next message
Chris B. is currently offline Chris B.Friend
Messages: 37
Registered: November 2011
Member
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]

Report message to a moderator

Re: internationalization [message #902153 is a reply to message #901568] Thu, 16 August 2012 07:16 Go to previous message
Chris B. is currently offline Chris B.Friend
Messages: 37
Registered: November 2011
Member
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.

Previous Topic:Cannot build update site with GMF 3.0.0.v201206221900
Next Topic:problem in creating a new editor in Eclipse Application
Goto Forum:
  


Current Time: Thu Mar 28 17:28:43 GMT 2024

Powered by FUDForum. Page generated in 0.03225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top