Learning the NetBeans Platform

Set the language for your RCP application

By default, an application built with the NetBeans Platform will use the system’s language. What this means is that if you are in Germany, the default messages (i.e. from JFileChooser) will be in German:

German GUI

Now what if you need to develop your application in English. Well, it’s easy. You just have to edit the file project.properties (under Important Files) from your application (nbproject folder) and add:

run.args.extra= --locale en:US

This way, the default messages will be displayed in English:

English GUI

Similar post on the subject: http://www.sepix.de/blogs/blogrittner/blog/archive////ide_67_mulitingual_switch_ins_angloamerikanische/index.html

Advertisements

May 15, 2009 - Posted by | NetBeans RCP

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: