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 19179 - I18N - mnemonic key doesn't work with translated message.
Summary: I18N - mnemonic key doesn't work with translated message.
Status: CLOSED DUPLICATE of bug 24186
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: A11Y, I18N
Depends on:
Blocks:
 
Reported: 2002-01-09 02:32 UTC by Hiroshi Nakatsubo
Modified: 2003-06-30 17:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
/home/hn131207/work2002/Image1.gif (6.13 KB, image/gif)
2002-01-09 02:39 UTC, Hiroshi Nakatsubo
Details
Image1-2.gif (5.69 KB, image/gif)
2002-05-08 05:46 UTC, Hiroshi Nakatsubo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroshi Nakatsubo 2002-01-09 02:32:47 UTC
Mnemonic Keys which was mistaken on the Japanese is attached.

1. Breakpoint is set up and debugging is performed.
2. Debug of a main menu -> Step Into is chosen.
3. Question dialog is displayed.
4. If it translates into Japanese, mnemonic has stopped moving.
   The Mnemonic Keys of "Stop".
   The Mnemonic Keys of "Step Out".
   The Mnemonic Keys of "Find source"

This bug resembles http://openide.netbeans.org/issues/show_bug.cgi?id=18635.
Comment 1 Hiroshi Nakatsubo 2002-01-09 02:39:29 UTC
Created attachment 4021 [details]
/home/hn131207/work2002/Image1.gif
Comment 2 Hiroshi Nakatsubo 2002-05-08 05:44:23 UTC
Would you check if the first character is not used as mnemonic key?
By localization, the first character becomes no-ascii character. 
As a result, the mnemonic key doesn't work by localization. To fix
this problem, we need to set two resource bundle messages, one is for
caption, another is for mnemonic.
       Example=TestString
       Example_Mnemonic=T

And we should use like this:
     myButton.setText(myBundle.getString("Example"));
    
myButton.setMnemonic(myBundle.getString("Example_Mnemonic").charAt(0).

I guess other many objects are implemented like above.
The following line does not work with localized version, because the
first character is not an alphanumeric because it's replaced to
multi-byte Japanese character.
  
myButton.setMnemonic(myResourceBundle.getString("Example").charAt(0));
Comment 3 Hiroshi Nakatsubo 2002-05-08 05:46:57 UTC
Created attachment 5667 [details]
Image1-2.gif
Comment 4 Hiroshi Nakatsubo 2002-05-24 06:11:55 UTC
Please refer to this page.
http://ministop.japan/Products/Forte/ffj-qa-i18n/docs/misc/mnemonic.html
Comment 5 Jan Jancura 2002-06-10 15:38:46 UTC

*** This issue has been marked as a duplicate of 24186 ***
Comment 6 Jesse Glick 2002-12-23 16:37:05 UTC
Consistent use of the I18N keyword.
Comment 7 Quality Engineering 2003-06-30 17:24:13 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 8 Quality Engineering 2003-06-30 17:28:48 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.