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.
Bug 23819 is still reproducible on 5.0. 23819: I18N - mnemonic key doesn't work with translated Also it seems that some labels are not from bundle. I'm using localized JDK and NB5.0 ml build in Japanese locale. In ConnectPanel.java under debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui, "str" seems to be localized already. Are these from JDK?? private static String translate (String str) private static char getMnemonic (String str) so, if (str.equalsIgnoreCase ("Host")) return NbBundle.getMessage (ConnectPanel.class, "CTL_Host"); str.equalsIgnoreCase(English) always fails. "str" is always returned as it is from translate(), 0 is always returned from getMnemonic().
I have no idea how issue #23819 was fixed, but apparently the problem is there. We must use "Connector.Argument.name()" instead of "Connector.Argument.label()" as a key to find the localized label.
Fixed for known connectors in trunk, the keys changed to match Argument.name(): /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/Bundle.properties,v <-- Bundle.properties new revision: 1.27; previous revision: 1.26 /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/ConnectPanel.java,v <-- ConnectPanel.java new revision: 1.22; previous revision: 1.21
Verified - works fine for latest 5.5