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 99484 - I18N - log message when click on version menu
Summary: I18N - log message when click on version menu
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-03-30 04:03 UTC by Ken Frank
Modified: 2007-05-11 15:49 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-03-30 04:03:38 UTC
running in ja locale with pseudo localized files


click on version menu and these lines appear in messages.log and in
console (am on solaris now):

 console and messages.log has:

\276\360\312\363 [org.openide.awt.Mnemonics]: Mapping from a non-Latin ch
aracter '\244\310' not found in a localized (branded) version of openide/
awt/src/org/openide/awt/Mnemonics.properties - mnemonic cannot be assigne
d in &\244\310\344\356Jon\344\356Subversion\344\345\244\355

\276\360\312\363 [org.openide.awt.Mnemonics]: Mapping from a non-Latin ch
aracter '\244\310' not found in a localized (branded) version of openide/
awt/src/org/openide/awt/Mnemonics.properties - mnemonic cannot be assigne
d in &\244\310\344\356Jos\344\356CVS\344\345\244\355

\276\360\312\363 [org.openide.awt.Mnemonics]: Mapping from a non-Latin ch
aracter '\244\310' not found in a localized (branded) version of openide/
awt/src/org/openide/awt/Mnemonics.properties - mnemonic cannot be assigne
d in &\244\310\344\356Joy\344\356Local History\344\345\244\355

(the \244\310..... is really multibyte, but that is how it is shown in this iz
window)

(each bundle value that has a mnemonic assignment as part of the label
does not change the value of the mnemonic key, it just puts a
multibyte prefix in front of the actual label
to simulate actual translated situation, since ja or zh translation
does not change the assigned mnemonic key

so that, for example


FILE=&File

become

FILE=zzz&File

where zzz is the multibyte


the 3 messages refer to the 3 sub menu labels under versioning.

This does not happen for other menus.

But using the mnemonic keys for each of these 3 items does work.
but the message will appear even if mnemonic keys not used, just if click
Versioning menu with the mouse.
----------------------------------------------------
2. each above message refers to this file:
org-openide-awt.jar
openide/awt/src/org/openide/awt/Mnemonics.properties

#NOI18N
MNEMONIC_`=192

#NOI18N
MNEMONIC_\'=222

#NOI18N
MNEMONIC_.=46

#NOI18N
MNEMONIC_\\=92

-----------------------------------------------------
3. for example, one of the labels referred to in one of the messages
above are in org-netbeans-modules-subversion/
and the pseudo localized bundle file has
CTL_MenuItem_OpenVersioning =\244\310\344\356Jon\344\356&Subversion\344\3
45\244\355

but many other values in this module and other modules bundle
files have such messages yet messages.log just refers to this one and the
 2 others.

ie from other subversion bundle files

CTL_PopupMenuItem_Ignore =\244\310\344\356Jon\344\356&Ignore\344\345\244\
355
CTL_MenuItem_Copy =\244\310\344\356Jon\344\356Cop&y to...\344\345\244\355
CTL_MergeOneFolder_Search2=\244\310\344\356Jon\344\356Se&arch...\344\345\
244\355
...
...


4. same kind of analysis for the other 2 in the messages.log
Comment 1 Marian Mirilovic 2007-03-30 09:11:42 UTC
use I18N keyword, please
Comment 2 Maros Sandor 2007-03-30 09:45:58 UTC
Those 3 labels are constructed this way: I get the display name of the
versioning system, say "Subversion", prepend an ampersand and call
org.openide.Mnemonics.setLocalizedText(menuItem, "&Subversion");
Comment 3 Maros Sandor 2007-05-11 15:10:19 UTC
This has been fixed already, please verify in latest builds.
Comment 4 Ken Frank 2007-05-11 15:49:06 UTC
verified

ken.frank@sun.com