Localizing NetBeans Platform Application

Localizing NetBeans Platform Application is very simple. You can use GUI form editor even for NetBeans Platform Applications. Good tutorial about internationalization on GUI builder has been updated recently for NetBeans 6.7 release. This tutorial works for 6.1, 6.5 and 6.7 releases.
When you're building GUI form on NetBeans, Automatic Internationalization feature will help your internationalization task. GUI form and properties files will be modified automatically with this option is turned ON.

NetBeans

Pease note that the option will appear on properties window when you select the top component of the form.

NetBeans

Once you enable this option, Bundle.properties will be created and necessary key and value pairs will be added automatically according to your updates on GUI editor. To edit Bundle.properties, there are two ways. "Edit" action will open the contents in usual editor. "Open" action will open a property editor.

NetBeans

The default action is going to open a raw editor (above) . If you choose "Open" from context menu, you can open the special editor for properties files (below). You can add and edit entries by using usual table.

NetBeans

To add new Bundle for languages other than English, select "Add" > "Locale...".

NetBeans

Select language and country code on New Locale dialog.

NetBeans

Once you add a new language, new column will be added in the property editor and you can modify strings and translate them.

NetBeans

Let's run the application. This is a simple example for NetBeans Platform Application running in Spanish locale.

NetBeans
Comments:

Post a Comment:
Comments are closed for this entry.
About

NetBeans Globalization

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today