[i18n] JFace dialogs and wizards [message #262392] |
Mon, 19 July 2004 12:05  |
Eclipse User |
|
|
|
Originally posted by: christian.hauser.dvbern.ch
Hi all
I'm writing a standalone application using SWT and JFace. I use dialogs
and wizards, however, I still don't seem to understand how to
internationalize them.
Tod Creasey told me that "these are internationalized in the catalogs we
[eclipse.org] supplied" and that I get this for free, when I use the
wizard classes.
But I don't seem to understand how to internationalize the "Next",
"Previous", "Cancel", ... buttons. I found the file messages.properties
in jface.jar. However, there is no messages_de.properties or
messages_fr.properties file.
I can do the following, but I cannot get an internationalized String:
ResourceBundle bundle = JFaceResources.getBundle();
String s = bundle.getString("nextButton"); // which is "&Next >"
Sorry for still asking the same questions, but I'd like to be able to
give the users of my application the chance to switch the language (if
possible without restarting the application). Unfortunately, I'm new to
SWT/JFace and have never been particularly interested in
internationalizing an application.
Thank you in advance for any help.
Christian
|
|
|
Re: [i18n] JFace dialogs and wizards [message #262443 is a reply to message #262392] |
Mon, 19 July 2004 15:05   |
Eclipse User |
|
|
|
Originally posted by: manahan.NOSPAM.ca.ibm.com
There is or will be a separate set of NL features and fragments. Those
fragments will contain the translations. I don't know if they have been
made available for 3.0 yet.
It used to look something like
org.eclipse.pluginid - the main plugin english only
org.eclipse.pluginid.nl1 - a fragment for the main plugin with the
translations
Peter
Christian Hauser wrote:
> Hi all
>
> I'm writing a standalone application using SWT and JFace. I use dialogs
> and wizards, however, I still don't seem to understand how to
> internationalize them.
>
> Tod Creasey told me that "these are internationalized in the catalogs we
> [eclipse.org] supplied" and that I get this for free, when I use the
> wizard classes.
>
> But I don't seem to understand how to internationalize the "Next",
> "Previous", "Cancel", ... buttons. I found the file messages.properties
> in jface.jar. However, there is no messages_de.properties or
> messages_fr.properties file.
>
> I can do the following, but I cannot get an internationalized String:
> ResourceBundle bundle = JFaceResources.getBundle();
> String s = bundle.getString("nextButton"); // which is "&Next >"
>
> Sorry for still asking the same questions, but I'd like to be able to
> give the users of my application the chance to switch the language (if
> possible without restarting the application). Unfortunately, I'm new to
> SWT/JFace and have never been particularly interested in
> internationalizing an application.
>
> Thank you in advance for any help.
>
> Christian
|
|
|
|
Re: [i18n] JFace dialogs and wizards [message #262894 is a reply to message #262604] |
Wed, 21 July 2004 10:39  |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Hi,
does anybody know when IBM will release the language pack for Eclipse 3.0?
Regards,
Peter
Tod Creasey wrote:
>>Sorry for still asking the same questions, but I'd like to be able to
>>give the users of my application the chance to switch the language (if
>>possible without restarting the application).
>
>
> Peter is right - you need to have the extra catalogs that ship later than
> the Eclipse SDK. IBM has donated the catalogs up to version 2.1 - you can
> get them from the download site.
>
> Switching languages on the fly is going to be pretty tough as you will need
> to reload all of the catalog to do so which means restarting Eclipse.
>
> Tod
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06054 seconds