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 - I18N - mnemonic key doesn't work with translated
Summary: I18N - mnemonic key doesn't work with translated
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: A11Y, I18N
Depends on:
Blocks:
 
Reported: 2002-05-22 09:12 UTC by Masafumi Matsuda
Modified: 2003-06-30 17:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snap shot (11.10 KB, image/gif)
2002-05-22 09:13 UTC, Masafumi Matsuda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masafumi Matsuda 2002-05-22 09:12:27 UTC
Please see attched image file. 
Mnemonic Keys which was mistaken on the Japanese
is attached.
To reproduce: Debug -> Attach...
The Mnemonic Keys of "Host, Port"

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).

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.

*OS:Solaris 5.9  
*Orion Build:orion_ml_020520  fcc Build:20.4
*JDK:JDK1.4.0
*locale:ja
Comment 1 Masafumi Matsuda 2002-05-22 09:13:23 UTC
Created attachment 5899 [details]
snap shot
Comment 2 Marian Petras 2002-05-22 10:24:09 UTC
Fixed in the main trunk.
Comment 3 Keiichi Oono 2002-10-10 12:28:59 UTC
We still have this problem. The same screen (attach.gif) comes up.
I'm guessing that the ConnectPanel.java does not work with localized
JDK, because the argName in following source code is localized string.
In Japanese environment, argName is not "Host", but Japanese
translated string which means host.

if (argName.equalsIgnoreCase("Host")) {   //NOI18N
...
else if (argName.equalsIgnoreCase("Port")) {   //NOI18N

Would you please investigate?
Thank you.
Keiichi
Comment 4 Ken Frank 2002-10-14 16:35:51 UTC
Moving to P2 after consultation with A11Y QA
since we feel that these mnemonic issues
do need to be fixed in next release.
(that is, assuming this is still a mnemonic issue)

ken.frank@sun.com
Comment 5 Jesse Glick 2002-12-23 16:35:48 UTC
Consistent use of the I18N keyword.
Comment 6 Jan Jancura 2003-02-18 16:38:14 UTC
fixed in the main trunk
Comment 7 hiroshiy 2003-02-24 09:51:11 UTC
Hello Jan,

I've verified the fixing in followings ...
   - NetBeans IDE Dev (Build 2003 0219 0100)
   - S1S trunk (Build 030220)
   - S1S Nevada (Build 030220_2)

Thank you for your fixing!!

Hiroshi
Comment 8 Quality Engineering 2003-06-30 17:30:27 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.