Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [i18n] JFace dialogs and wizards
[i18n] JFace dialogs and wizards [message #262392] Mon, 19 July 2004 16:05 Go to next message
Eclipse UserFriend
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 19:05 Go to previous messageGo to next message
Eclipse UserFriend
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 #262604 is a reply to message #262392] Tue, 20 July 2004 12:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tod_creasey.oti.com

> 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
Re: [i18n] JFace dialogs and wizards [message #262894 is a reply to message #262604] Wed, 21 July 2004 14:39 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:LinkedResourceDecorator performance problems
Next Topic:How to get build status?
Goto Forum:
  


Current Time: Sun Sep 01 08:15:36 GMT 2024

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

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

Back to the top