<Swing Dev> Review request for 7093156: NLS: Please change the mnemonic assignment system to avoid translation issue (Swing files)

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Wed Mar 28 15:36:17 UTC 2012


bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7093156
webrev: http://cr.openjdk.java.net/~alexsch/7093156/webrev.00/

The properties in the swing resources files are changed from the
   xxxText=ABC
   xxxMnemonic=B
to
   xxxTextAndMnemonic=A&BC

where Text suffix can be one of the following: "NameText", "nameText", 
"Text" and  "Title"


The hashmap in UIDefaults class is extended to return the correct values 
for the keys xxxText and xxxMnemonic from the stored xxxTextAndMnemonic 
string.

There is no html text in the swing resource files so this case is not 
considered.
The fix covers only the swing resource files in the JDK:
   src/share/classes/com/sun/swing/internal/plaf
   src/share/classes/com/sun/java/swing/plaf

The demo resources will be fixed in the separated issue.

Thanks,
Alexandr.




More information about the swing-dev mailing list