|
[]
I18N hyperlinking for NetBeans modules
[
mkleint
]
It's a good practice to have your code internationalized. The coding pattern for doing so in NetBeans modules is following: org.openide.util.NbBundle.getMessage(FindResultsPanel.class, "FindResultsPanel.btnModify.text") Here the FindResultsPanel is the class where the text is used, The Bundle.properties file resides in the same package as the class and the getMessage method makes sure it loads properly in an efficient manner. If you are coding a NetBeans module, you should avoid calling However it's been always a pain to edit the text. First you ned to find the I18N token, then find and open the relevant Bundle.properties file and then find the line with the I18N token. The pain has become unbearable for me and I created a simple module that's capable of "hyperlinking" to the correct location in the correct resource bundle file directly from the java source file. The module NBM file can be downloaded from here. Enjoy. This is really cool, Something that I waiting for while --Anuradha Gunasekara, March 31, 2008 10:17 AM
Looks great and seems to be very useful. --Satai, March 31, 2008 12:23 PM
Very useful plugin. Should should add it to the Plugin Portal http://plugins.netbeans.org/PluginPortal/faces/MainPage.jsp. --Oleg, March 31, 2008 09:56 PM
done. I've added he code to the default netbeans module development module for the version coming after 6.1 --mkleint, April 1, 2008 12:24 PM
Hi, --James Branam, April 8, 2008 08:19 AM
Could you please provide the source code of this module? I'm very interested in improving the current i18n module in netbeans. Probably your code would be a good starting point. --Daredevil, June 30, 2008 09:35 AM
check the current hg.netbeans.org/main repository, the apisupport.project project, package org.netbeans.modules.apisupport.project.hyperlink --Milos Kleint, June 30, 2008 10:01 AM
Post a comment
|