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

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snap shot (14.43 KB, image/gif)
2002-05-17 11:19 UTC, Masafumi Matsuda
Details
snap shot (8.77 KB, image/gif)
2002-05-20 07:37 UTC, Masafumi Matsuda
Details
snap shot (11.64 KB, image/gif)
2002-05-20 08:10 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:18:34 UTC
Please see attched image file. 
Mnemonic Keys which was mistaken on the Japanese
is attached.

To reproduce:
1.Create a Web Module
2.Highlight the Web Module on the Explorer
3.Tools -> Add JSP Tag Library -> Find in
Filesystem...

The Mnemonic Keys of "Filesystem Root"

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:19:29 UTC
Created attachment 5802 [details]
snap shot
Comment 2 Masafumi Matsuda 2002-05-17 11:21:15 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 Masafumi Matsuda 2002-05-20 07:36:23 UTC
I found the same issue of "Set HTTP Request Parameters" Window.

To reproduce:
1.create JSP: New -> JSP & Servlet -> JSP
2.Highlight the file -> Tools -> Set Request Parameters...
The Mnemonic Keys of "Query String"
Comment 4 Masafumi Matsuda 2002-05-20 07:37:43 UTC
Created attachment 5845 [details]
snap shot
Comment 5 Masafumi Matsuda 2002-05-20 08:08:44 UTC
I found the same issue of "Add web module" Window.

To reproduce:
1.Create Web Module Group: New -> JSP & Servlet -> Web Module Group
2.Highlight the file, Right click -> Add web module
The Mnemonic Keys of "Web module, Mapping"
Comment 6 Masafumi Matsuda 2002-05-20 08:10:03 UTC
Created attachment 5846 [details]
snap shot
Comment 7 Masafumi Matsuda 2002-05-21 02:30:58 UTC
I was mistaken about the Mnemonic Key of "Web module". (addmod.gif)
The Mnemonic Key works correctly in my Japanese environment.

Sorry for my confusion.
Comment 8 Marek Grummich 2002-07-22 12:03:56 UTC
Set target milestone to TBD
Comment 9 Marek Grummich 2002-07-22 12:09:31 UTC
Set target milestone to TBD
Comment 10 Ken Frank 2002-10-12 19:52:07 UTC
marking as p2 since a11y and needs fixing for nb4.0

ken.frank@sun.com
Comment 11 hiroshiy 2002-11-21 07:00:15 UTC
I found that, this issue is no longer reappeared
by suitable translation. 
Therefore, this issue should be closed.

But, another problems are remained about mnemonic definition
in Bundle.properties file, certainly.
Please refer the following issues.

issue #28904
issue #28905

Regards,
Hiroshi.
Comment 12 Jesse Glick 2002-12-23 16:35:26 UTC
Consistent use of the I18N keyword.