Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP and i18n
RCP and i18n [message #436334] Tue, 06 September 2005 06:21 Go to next message
Eclipse UserFriend
Hi all,

I'm kinda puzzled, what exactly is required to get internationalization
working in a RCP application, especially SWT's and GEF's translations. The
problem is not getting all the strings externalized - this works as
expected.

SWT documentation says its swt-nl.jar just needs to be on classpath for
translations to work. How would I bundle it together with my exported app?
Any settings in pluxin.xml/MANIFEST.MF?

GEF's translations are shipped as fragment, how would I tell my app about
it? Adding it as dependancy doesn't work. Neither does putting the content
in my apps feature and plugin directory.

All the how-tos about plugin internationalization just seem to cover
externalization of strings, not how to get required plugin's translations
to work.

Thank you all a lot in advance!

Fabian
Re: RCP and i18n [message #436352 is a reply to message #436334] Tue, 06 September 2005 22:46 Go to previous message
Eclipse UserFriend
There is nothing special to do to have your app translated.
At development time, make sure you have all the fragments for all your
plugins loaded into your application. Once deployed make sure those
translation fragments are present as well.

To specify a language you need to start with -nl XXXX on the command
line (or osgi.nl=XXXX in the config.ini in 3.1) where XXXX is the locale
for the language you want to run with.

If you don't see the translation, start with -console on the command
line and see if the fragments are resolved.

PaScaL

Fabian Wolf wrote:
> Hi all,
>
> I'm kinda puzzled, what exactly is required to get internationalization
> working in a RCP application, especially SWT's and GEF's translations. The
> problem is not getting all the strings externalized - this works as
> expected.
>
> SWT documentation says its swt-nl.jar just needs to be on classpath for
> translations to work. How would I bundle it together with my exported app?
> Any settings in pluxin.xml/MANIFEST.MF?
>
> GEF's translations are shipped as fragment, how would I tell my app about
> it? Adding it as dependancy doesn't work. Neither does putting the content
> in my apps feature and plugin directory.
>
> All the how-tos about plugin internationalization just seem to cover
> externalization of strings, not how to get required plugin's translations
> to work.
>
> Thank you all a lot in advance!
>
> Fabian
Previous Topic:Printing abstraction layer for SWT
Next Topic:Title of PreferenceDialog
Goto Forum:
  


Current Time: Sun Jul 13 08:48:20 EDT 2025

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

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

Back to the top