Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF RAP Localization(how to internationalize the EMF generated Editor)
EMF RAP Localization [message #1162624] Wed, 30 October 2013 14:01 Go to next message
Bats Frederic is currently offline Bats FredericFriend
Messages: 1
Registered: October 2013
Junior Member
Hello

We develop for our compagny a web application in rap.

We offer to our user to create some models trougth the generated EMF Editor. "Automaticaly" we generate Documents based on the model and our database.

Today, I 'm working on the internationalization of the application but I have some problems with the editor menus.

We have done an ecore model and generated all the code for edit and editor. We create one resource file for each document and in our application manifest, we add a extension point to associated our resource file and the Editor

All the application is translate, but menus in the editor are not translate. When i look to the RWT.Locale this correspond to the locale store in the user session but Editor seems to work with the locale of the server. If i change the language of the server before to launch the application,

I have the same problems with some SWT control such as Dialog whitch is translate in the "server" language instead of the languge select by user.

Thank you for your help.

Rap: version 1.5
babel project: for french and deutch
Re: EMF RAP Localization [message #1164113 is a reply to message #1162624] Thu, 31 October 2013 12:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30372
Registered: July 2009
Senior Member
Frederic,

Sorry, but I'm not sure how RAP interacts with EMF in this regard. All
the lookup of strings ultimately delegate to
org.eclipse.emf.common.EMFPlugin.InternalHelper.getString(String,
boolean) so if something is going wrong, this is where to look at what's
going on. This code uses
org.eclipse.core.runtime.Platform.getResourceBundle(Bundle) to get the
bundle, and that's likely to use the local of the JVM, not anything RAP
specific. So perhaps the solution is to specialize that method to use
something more RAP-aware.


On 30/10/2013 7:48 PM, Bats Frederic wrote:
> Hello
>
> We develop for our compagny a web application in rap.
>
> We offer to our user to create some models trougth the generated EMF
> Editor. "Automaticaly" we generate Documents based on the model and
> our database.
>
> Today, I 'm working on the internationalization of the application but
> I have some problems with the editor menus.
>
> We have done an ecore model and generated all the code for edit and
> editor. We create one resource file for each document and in our
> application manifest, we add a extension point to associated our
> resource file and the Editor
>
> All the application is translate, but menus in the editor are not
> translate. When i look to the RWT.Locale this correspond to the locale
> store in the user session but Editor seems to work with the locale of
> the server. If i change the language of the server before to launch
> the application,
> I have the same problems with some SWT control such as Dialog whitch
> is translate in the "server" language instead of the languge select by
> user.
>
> Thank you for your help.
>
> Rap: version 1.5
> babel project: for french and deutch
>
Previous Topic:Read-Only attributes persisted in model.uml and caused into error
Next Topic:[CDO]protocol version 17 does not match excepted version 16?
Goto Forum:
  


Current Time: Sat Aug 24 05:06:06 GMT 2019

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

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

Back to the top