Tuesday Feb 26, 2013

NetBeans Platform 7.3 In Other Languages

NetBeans IDE 7.3 is available in English, Brazilian Portuguese, Japanese, Russian, and Simplified Chinese. 

That means that you can create an application on top of the framework beneath NetBeans IDE, i.e., the NetBeans Platform, and without needing to do anything at all, all those languages will be automatically available and can be enabled from the .conf file of the application. Each JAR in NetBeans IDE has an equivalent JAR in all of the above languages, containing the translations for the English JAR they relate to.

However, what about other languages, e.g., German, French, Arabic, etc? Well, the good news is that the AgroSense team has published the old community translations (which were worked on until NetBeans IDE 7, with investigations still being done about how to continue that project) to Maven Central. The fact that nothing has been translated since NetBeans IDE 7 is not a problem if you're creating a NetBeans Platform application, since not much (if any) UI has been added to the NetBeans Platform since that time, i.e., most changes have been on the level of API changes and performance enhancements and, of course, in the application layer above it, for NetBeans IDE. The latter, though, is a layer that is completely irrelevant if you're interested in providing your own business application on top of the NetBeans Platform.

Include this in your NetBeans Platform application POM and add "--locale de" (or -J-Duser.language=de) to the .conf file of the application and your application will be German:

<dependency>
 <groupId>nl.cloudfarming.client</groupId>
 <artifactId>lib-platform-l10n</artifactId>
 <version>1.0-NB72</version>
</dependency>

Better still, here is a Maven application I created today that (1) includes the above dependency and (2) includes the .conf file in the right place:

http://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.3/misc/MyCoolApp

The screenshot you see above shows you all the JARs that will be downloaded, via the dependency shown above, just for one of the English JARs, so there'll be many other JARs for all the other JARs too.

Here's how NetBeans Platform 7.3 looks in German:

And here it is in French:

And here in Dutch:

When you are using Ant, instead of Maven, you can include all the translation JARs in your branding module:

http://java.net/projects/nb-library-wrappers/sources/core/show/lib-platform-l10n/nb72_platform_l10n/platform

Thanks Timon and the AgroSense project for making these translations available. 

About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« February 2013 »
SunMonTueWedThuFriSat
     
3
4
5
6
10
11
12
14
15
16
17
27
28
  
       
Today