Netbeans Platform localization and branding trick

February 13th, 2008 | by Tonny Kohar |

This is the second part of Netbeans Platform i18n and localization trick. The first part is available at Netbeans Platform i18n and localization.

This approach is using branding trick to override the Netbeans Platform default localization. I think this is a HACK, use with caution. The proper localization should be following Netbeans Localization Project. Please see

So for example, you want to localize Menu – File – Exit to Keluar (Indonesian localization for exit), this could not be done with layer.xml trick because that Menu Action is not localized through layer.xml, it is using NbBundle.getBundle instead. So what you need to do is using the Netbeans Platform branding feature to localize that Menu Action.

Note: This is tested on Netbeans 6.0.1

Step 1: Find out the localization location

You need to know where it is localized and the name of jar, in this case it under
with key Exit=E&xit
jar name = org-netbeans-core.jar

Step 2: Create the localization with Branding trick

In the project suite (under Files, not project) expand the branding folder as show in the image. If the folder branding/module/org-netbeans-core.jar is not exists, just create it, it is just a normal folder structure. The folder structure must be the same as in step 1

Note: org-netbeans-core.jar is not a jar file, it is a folder name
Netbeans Branding folder

Add the following in the


Step 3: Test and Finish

Rebuild the suite then run. Finally test. see the Menu – File (the exit should be localized with Keluar)

Tags: , , ,

  1. 2 Responses to “Netbeans Platform localization and branding trick”

  2. By Sonny on Nov 28, 2008 | Reply

    Im wondering, how do I find out where all these actions are localized? Esit is in org-netbeans-core.jar but what about New Project.. or New File.. actions ??

  3. By Tonny Kohar on Nov 29, 2008 | Reply

    I usually using search function in Netbeans against Netbeans source, to find out particular string.

You must be logged in to post a comment.