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 31195 - I18N - mnemonic cannot be displayed after translation
Summary: I18N - mnemonic cannot be displayed after translation
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: -S1S-
Hardware: All All
: P4 blocker (vote)
Assignee: Richard Gregor
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2003-02-19 05:35 UTC by yasuhiro
Modified: 2006-01-04 15:47 UTC (History)
1 user (show)

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 yasuhiro 2003-02-19 05:35:22 UTC
In

'vcsgeneric/profiles/pvcs/src/org/netbeans/modules/vcs/profiles/pvcs/commands/PvcsDatabaseSelectorPanel.java'
,

'customDbBrowseButton' and 'dbFolderBrowseButton'
use
same massage id 'LABEL_Browse' for caption
by setText method.

And 'customDbBrowseButton' use
'LABEL_Browse_Mnemonic' 
for mnemonic, and 'dbFolderBrowseButton' use
'LABEL_BrowseSubfolder_Mnemonic'.

--- Bundle.properties ----------
LABEL_Browse=Broese...
LABEL_Browse_Mnemonic=B
LABEL_BrowseSubfolder_Mnemonic=R
--------------------------------

After translation into japanese,
'Broese...' does not have 'B' and 'r'.
So we add one character for mnemonic to tail of a
message,
like following:

LABEL_Browse=<multi-byte message>(B)...

But in this case, one message has two mnimonic.
So we cannot add '(B)' and '(R)' to one message.

Please fix this like following:

--- Bundle.properties ----------
LABEL_Browse=Broese...
LABEL_Browse_Mnemonic=B
LABEL_BrowseSubfolder=Browse...   <- needed
LABEL_BrowseSubfolder_Mnemonic=R
--------------------------------
Comment 1 Jiri Kovalsky 2003-02-19 08:11:32 UTC
Would you Richard please fix it ? Thanks !
Comment 2 Richard Gregor 2003-02-19 12:29:50 UTC
Fixed.

dbFolderBrowseButton uses new Bundle entry "LABEL_dbFolderBrowse".

 
Checking in Bundle.properties;
/cvs/vcsgeneric/profiles/pvcs/src/org/netbeans/modules/vcs/profiles/pvcs/commands/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.10; previous revision: 1.9
done
Checking in PvcsDatabaseSelectorPanel.form;
/cvs/vcsgeneric/profiles/pvcs/src/org/netbeans/modules/vcs/profiles/pvcs/commands/PvcsDatabaseSelectorPanel.form,v
 <--  PvcsDatabaseSelectorPanel.form
new revision: 1.3; previous revision: 1.2
done
Checking in PvcsDatabaseSelectorPanel.java;
/cvs/vcsgeneric/profiles/pvcs/src/org/netbeans/modules/vcs/profiles/pvcs/commands/PvcsDatabaseSelectorPanel.java,v
 <--  PvcsDatabaseSelectorPanel.java
new revision: 1.6; previous revision: 1.5
done

Comment 3 yasuhiro 2003-03-25 08:38:49 UTC
Thanks.
I verified it in Nevada 030317, so I close this.