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 58944

Summary: I18N - mnemonic key for 'Browse' is assigned dynamically
Product: xml Reporter: ohsumi <ohsumi>
Component: XML MultiviewAssignee: Milan Kuchtiak <mkuchtiak>
Status: CLOSED FIXED    
Severity: blocker CC: jf4jbug
Priority: P3 Keywords: I18N
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ohsumi 2005-05-16 11:22:34 UTC
The mnemonic key for the 'Browse...' button is assigned dynamically as follows.

xml/multiview/src/org/netbeans/modules/xml/multiview/ui/Bundle.properties
LBL_browse=Browse...
LBL_browse0_mnem=B
LBL_browse1_mnem=R
LBL_browse2_mnem=W

xml/multiview/src/org/netbeans/modules/xml/multiview/ui/SimpleDialogPanel.java 
              
button.setText(NbBundle.getMessage(SimpleDialogPanel.class,"LBL_browse"));     
           
button.setMnemonic(NbBundle.getMessage(SimpleDialogPanel.class,"LBL_browse"+String.valueOf
(j++)+"_mnem").charAt(0));

However, when a message is translated into Japanese, ja message needs to have
a mnemonic key at the end of line. For example:

LBL_browse=Japanese_Browse(B)...

Consequently, message for each mnemonic key needs statically.
LBL_browse0=Browse...       for 'B' mnemonic key
LBL_browse1=Browse...       for 'R' mnemonic key
LBL_browse2=Browse...       for 'W' mnemonic key
LBL_browse0_mnem=B
LBL_browse1_mnem=R
LBL_browse2_mnem=W
Comment 2 Jiri Kovalsky 2006-03-01 13:02:35 UTC
Could you please ohsumi verify whether it's all right in Japanese localization
now ? Thanks for your confirmation.
Comment 3 Masaki Katakai 2006-03-01 15:17:52 UTC
Thank you, it's OK for Japanese now. marked as VERIFIED.