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 109751 - Change mnemonics handling from 2 key/value to '&' method
Summary: Change mnemonics handling from 2 key/value to '&' method
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks: 86438
  Show dependency tree
 
Reported: 2007-07-15 20:21 UTC by Ken Frank
Modified: 2007-08-27 14:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-07-15 20:21:55 UTC
A look at some bundle files of the modules in this category showed that
there were usages of the 2 key/value approach for defining mnemonics, ie
FILE_Mnenonic=F
FILE_Label=File

if this already an issue under 86438, please close this; it did not seem that it was.

see umbrella 86438 - direction from nb is to replace usage of
setMnemonic and setDisplayed Mnemonic to org.openide.Mnemonics
such that, instead of bundle file having a separate key/value for
defining the mnemonic key and a separate key/value for the label, that
it all be in the one key/value, for example

FILE=&File

(also, even if the assigned key is the first letter of the label, always
put in the '&')

This issue relates to all usages of the 2 key/value approach in this
category.

A quick way to look in bundle files to see this is
find <path> -name "*.properties" | xargs egrep -i '.*=.$'


If this issue needs to be filed in separate subcategories of this
category, please do so and this one could be used as an umbrella issue
of those.

I don't know if this is required to be complete for nb6; please check
with your nb team and qe on your team; the goal
is not to destabilize mnemonics since that is part of a11y criteria, but
to make it clearer and smoother for translation
teams;  based on voc and requirements from translation teams, nb team
decided to request to have these changes made.
Comment 1 Maros Sandor 2007-08-27 14:09:29 UTC
Removed unused bundle keys.

/shared/data/ccvs/repository/i18n/src/org/netbeans/modules/i18n/wizard/Bundle.properties,v  <--  Bundle.properties
new revision: 1.32; previous revision: 1.31
/shared/data/ccvs/repository/i18n/src/org/netbeans/modules/i18n/java/Bundle.properties,v  <--  Bundle.properties
new revision: 1.7; previous revision: 1.6
/shared/data/ccvs/repository/i18n/src/org/netbeans/modules/i18n/Bundle.properties,v  <--  Bundle.properties
new revision: 1.75; previous revision: 1.74