This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There is (or at least doesn't seem to be) any way to internationalize the core components of an RCP application. By core component I mean everything that is given by the platform. The simplest example for this is a notify dialog created with DialogDisplayer. There is no way I could internationalize the title of the dialog and/or the labels on the ok/cancel buttons. I have looked into the code of the Dialog API and the NBBundle class, and the problem seems to be that NBBundle is always loading strings for a class from a bundle that is in the class's package. There is no way one module in the program could change the strings for another, what in my opinion is a big problem when building RCP apps. My proposal for fixing this problem is, a simple method, with which you could replace the entry for a class in NBBundle for whatever you want. And I almost forgot to mention that I have seen the recommendation on the Platform Internationalization page, that I should build against an internationalized version of NB. This of course if not an option if you're developing for any language for which an internationalized version doesn't exist.
what type of netbeans project is being used ? and is it wanted to translate the actual parts of netbeans that is part of your appliocation, assuming this is a netbeans module application ? or is to i18n something like the dialog that is created for you ? in this case I think the i18n wizard could be used or related functionality in gui builder ? ken.frank@sun.com
I'm building a module suite application, and I want to internationalize the dialogs opened by DialogDisplayer.notify(...)
can you tell the steps used for how you create your dialog - like create module suite, then create module, then do you use the file=> new to create something like a wizard or other window ? (and then use gui builder to create dialog) ? ken.frank@sun.com
I didn't create the dialog with GUI builder. I know all stuff in GUI builder can be internationalized. I'm talking about the standard dialogs opened by DialogDisplayer in Dialogs API module. To clarify here is the code I used to create the dialog: NotifyDescriptor desc = new NotifyDescriptor.Confirmation("Hello", NotifyDescriptor.YES_NO_OPTION); DialogDisplayer.getDefault().notify(desc); In this case I found no way I could internationalize the 'Yes' and 'No' buttons. This also applies to many built in features in the platform.
am changing to what I think is the category for this issue, so could get more information on this from that team. ken.frank@sun.com
In NB localizations are supplied as e.g. Bundle_ja.properties files which live in special JARs such as modules/locale/your-module-name_ja.jar. This applies to modules present in the NB Platform as well as your own modules. http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/i18n-branding.html Please use dev@openide.netbeans.org for assistance.