JDK-7013850 : Please change the mnemonic assignment system to avoid translation issue
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-01-21
  • Updated: 2014-10-10
  • Resolved: 2012-05-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u6Fixed 8 b38Fixed
Related Reports
Relates :  
Could you change the mnemonic assignment system to avoid translation issue ?

In Java (J2SE) project, the mnemonic (shortcut key) for menu items are specified in the following structure.

Details are as follows:

File: Systems|Java|JavaProperties|java/j2se/src/share/classes/sun/print/resources/serviceui.properties (there are many examples within this file):
US Text: Print to File
String ID: checkbox.printtofile
US Text: F
String ID: checkbox.printtofile.mnemonic

"Print to File" string will appear on the user interface with "F" underscored. This indicate a user can use "F" key to invoke this menu item instead of using mouse and clicking File.
In many languages other than English, however, the translation of "File" does not include "F". For example, File is "Datei" in German, and �������� in Japanese.
In such a case, the mnemonic does not appear on the translated menu item.

In Sun translation, we have been translating such a string by adding "(F)" to the end of the translation or change mnemonic word itself to avoid issue.




However, on HyperHub, this will cause TM break since "File" will be accepted as ��������(F), and "F" as "D" in this case, and reused for any other string as AutoAccept.

To avoid this problem, isn't it possible to change the method to specify the mnemonic key from the current 2 lines into 1 line where both the menu item and mnemonic are included ?

EVALUATION As described.