EMF RAP Localization [message #1162624] |
Wed, 30 October 2013 10:01  |
Eclipse User |
|
|
|
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 08:49  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.07323 seconds