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.
Summary: | Allow ResourceBundle instead of NbBundle | ||
---|---|---|---|
Product: | java | Reporter: | ivan <ivan> |
Component: | I18N | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | NEW --- | ||
Severity: | blocker | CC: | hmichel, jvagner, misterm |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | nb55-internationalization-expert-settings.jpg |
Description
ivan
2008-11-18 07:45:21 UTC
There used to be an option to pick the style of I18N code generation you want, but I can't find it now. Probably the form editor should use NbBundle.getMessage(ThisClass.class, "key") if NbBundle can be found on the classpath of the form, otherwise using ResourceBundle.getBundle("this.package.and.ThisClass").getString("key"). NbBundle may not be on the classpath if the project dependencies aren't setup right a-priori, so too automatic a choice may backfire. Yes, there is this option but it is no more public... it was removed from 'Advanced Options' and not relocated on new Options UI. AFAIK when you change the internationalization option on the combobox, it will be remembered during all NB sessions, until you change it again. This will be a problem if you, like me, work at several projects which have different classes with this purpose. Maybe should be implemented a way to add new patterns, maybe in the Miscellaneous options I guess.I will really appreciate this too. Yes, user was able to configure this inside Advanced Options -> Internationalization -> Expert ... (see the screenshot). I will reassign this issue to i18n component, maybe there is a some magic commandline workaround switch ... I will also discuss this issue with form developers. Created attachment 73898 [details]
nb55-internationalization-expert-settings.jpg
|