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 23670 - I18N - mnemonic key doesn't work with translated
Summary: I18N - mnemonic key doesn't work with translated
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: akemr
URL:
Keywords: A11Y, I18N
: 27807 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-17 11:34 UTC by Masafumi Matsuda
Modified: 2007-05-21 09:12 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snap shot (23.41 KB, image/gif)
2002-05-17 11:35 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-17 11:34:16 UTC
Please see attched image file. 
Mnemonic Keys which was mistaken on the Japanese
is attached.

To reproduce:
1.Tools -> Update Center...
2.Select "Install Manually Downloaded Modules" ->
Next
3. STEP2. Select Modules to Install(Continued)
The Mnemonic Keys of "Modules to Install"

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_020507  fcc Build:20.4
JDK:JDK1.4.0
locale:ja
Comment 1 Masafumi Matsuda 2002-05-17 11:35:08 UTC
Created attachment 5803 [details]
snap shot
Comment 2 Masafumi Matsuda 2002-05-17 11:37:27 UTC
I added the keyword "A11Y" for the bug.
But I could not add the interest list for the bug.
(michele.budris@sun.com) 
Comment 3 akemr 2002-05-17 14:31:29 UTC
Fixed in trunk
Comment 4 hiroshiy 2002-07-03 10:19:39 UTC
I've verified the fixing in "NetBeans 3.4 Beta2 (Build 200206201555)" 
and "NetBeans 3.4 Trunk (Build 200207020100)"

Thank You.
Comment 5 akemr 2002-10-04 09:37:30 UTC
*** Issue 27807 has been marked as a duplicate of this issue. ***
Comment 6 Jesse Glick 2002-12-23 16:35:45 UTC
Consistent use of the I18N keyword.
Comment 7 Quality Engineering 2003-06-30 13:49:55 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.