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 23012 - 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: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Masafumi Matsuda
URL:
Keywords: A11Y, I18N
Depends on:
Blocks:
 
Reported: 2002-05-01 09:20 UTC by Masafumi Matsuda
Modified: 2008-12-22 22:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snap shot (9.12 KB, image/gif)
2002-05-01 09:21 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-01 09:20:10 UTC
Please see attched image files. 
Mnemonic Keys which was mistaken on the Japanese
is attached.
To reproduce: Tool bar of Main Window -> right
click -> Sava Configuration...
The Mnemonic Keys of "Name"

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.8  
*Orion Build:orion_ml_020429  fcc Build:20.4
*JDK:JDK1.4.0
Comment 1 Masafumi Matsuda 2002-05-01 09:21:44 UTC
Created attachment 5611 [details]
snap shot
Comment 2 Masafumi Matsuda 2002-05-16 03:07:23 UTC
I added the keyword "A11Y" for the bug.
But I did not add the interest list for the bug.
(michele.budris@sun.com) 
Comment 3 David Simonek 2002-06-05 16:19:39 UTC
Again same problem - usage of NotifyDescriptor.InputLine.
Partially fixed - I modified core/windows/toolbars/Bundle.properties,
key PROP_saveLabel
Please add "(&N)" to the PROP_saveLabel key in japanese bundle. Thanks.
Reassign if needed, I don't know who should I assign this to.
Comment 4 _ ttran 2002-06-11 16:20:25 UTC
Dafe said the faulty code on core side is fixed.  Marked the issue as such
Comment 5 hiroshiy 2002-10-04 10:29:40 UTC
I've verified the fixing in "NetBeans Development Build
(200210030100)".
Comment 6 Jesse Glick 2002-12-23 16:35:25 UTC
Consistent use of the I18N keyword.
Comment 7 Quality Engineering 2003-07-01 16:12:01 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.