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 111484

Summary: I18N Label in options is not from bundle
Product: ruby Reporter: Jiri Prox <jiriprox>
Component: CodeAssignee: Torbjorn Norbye <tor>
Status: RESOLVED INVALID    
Severity: blocker CC: kfrank
Priority: P2 Keywords: I18N
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

Description Jiri Prox 2007-07-31 15:15:25 UTC
Product Version: NetBeans IDE Dev (Build 200707270000) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System:
Linux version 2.6.5-1.358 running on i386; UTF-8; ja_JP (nb) Userdir: /space/ui18n3
Pseudolocalized

Text "Ruby Interpreter" in options does not come from bundle
Comment 1 Jiri Prox 2007-07-31 15:16:30 UTC
Created attachment 45945 [details]
screenshot
Comment 2 Torbjorn Norbye 2007-07-31 18:45:45 UTC
I'm puzzled - the code looks i18nized to me:

RubyHomeOptionsPanel.java:
        rubyLabel.setLabelFor(rubyField);
        org.openide.awt.Mnemonics.setLocalizedText(rubyLabel, org.openide.util.NbBundle.getMessage(RubyHomeOptionsPanel.class, "RubyLabel")); // NOI18N

Bundle.properties:
RubyLabel=Ruby &Interpreter\:

Your screenshot shows that the label has a mnemonic for "I" so it really looks like it's using the mnemonics call...
Comment 3 Ken Frank 2007-07-31 18:54:52 UTC
the search in pseudo localized bundles was not complete since was searching
for Ruby Interpreter, but it is as Ruby &Interpreter

this is not due to bug filers actions, it was my interpretation that was the problem
and I apologize for it.

for some reason, I explicitly skipped pseudo localizing this key; I will change that.

thus am closing this issue.

ken.frank@sun.com
Comment 4 Torbjorn Norbye 2007-07-31 18:57:33 UTC
No problem, glad there's not some difficulty mystery here :)