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 - I18N - mnemonic key for 'Browse' is assigned dynamically
Summary: I18N - mnemonic key for 'Browse' is assigned dynamically
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XML Multiview (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-05-16 11:22 UTC by ohsumi
Modified: 2007-09-25 01:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.