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


May 15, 2009 Posted by | NetBeans RCP | Leave a comment