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 22482 - I18N - I18N for messages with mnemonic is not correct
Summary: I18N - I18N for messages with mnemonic is not correct
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ ttran
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2002-04-16 10:30 UTC by jf4jbug
Modified: 2008-12-23 12:18 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 jf4jbug 2002-04-16 10:30:06 UTC
I cannot localize the following messages with
mnemonic in
core/src/org/netbeans/beaninfo/editors/Bundle.properties.

CTL_Insert=Insert
CTL_InsertRow_Mnemonic=I
CTL_InsertColumn_Mnemonic=n

CTL_Delete=Delete
CTL_DeleteRow_Mnemonic=e
CTL_DeleteColumn_Mnemonic=l

CTL_CountPlus=+
CTL_CountPlusRow_Mnemonic=,
CTL_CountPlusColumn_Mnemonic=[

CTL_CountMinus=-
CTL_CountMinusRow_Mnemonic=.
CTL_CountMinusColumn_Mnemonic=]

CTL_FileSystemPanel.browse=Browse...
CTL_FileSystemPanel.browse1_Mnemonic=B
CTL_FileSystemPanel.browse2_Mnemonic=R

In the CTL_Insert case, the same message uses for
the different mnemonics as follows.

insertRowBtn = new
JButton(bundle.getString("CTL_Insert"));
insertRowBtn.setMnemonic(bundle.getString("CTL_InsertRow_Mnemonic").charAt(0));

insertColBtn = new
JButton(bundle.getString("CTL_Insert"));
insertColBtn.setMnemonic(bundle.getString("CTL_InsertColumn_Mnemonic").charAt(0));

However, when these messages are translated in
Japanese, mnemonic is added to the end of message.

   MESSAGE1=English message
   MESSAGE1_mnemonic=m
-->
   MESSAGE1=Japanese message(m)
   MESSAGE1_mnemonic=m

Please correct the above messages in such a way
that one message for one mnemonic exists.

For example:

CTL_Insert=Insert       <-- delete
CTL_InsertRow=Insert    <-- add
CTL_InsertColumn=Insert <-- add
CTL_InsertRow_Mnemonic=I
CTL_InsertColumn_Mnemonic=n

In addition, since CTL_Remove=Remove is duplicate,
please remove one.

   185 line    CTL_Remove=Remove
   289 line    CTL_Remove=Remove
Comment 1 David Simonek 2002-04-16 12:00:54 UTC
Ales, could you look at it? If you're not the right person, please
pardon my ignorance and pass this further. Thanks.
Comment 2 _ ttran 2002-04-19 07:50:29 UTC
well, I'll fix it.  The reporter is talking about the Table editor.
Comment 3 _ ttran 2002-04-19 08:09:05 UTC
fixed in CVS trunk

core/src/org/netbeans/beaninfo/editors/

1.50        Bundle.properties
1.21        CustomTableModelEditor.java
Comment 4 _ ttran 2002-04-19 09:27:54 UTC
merged into orion_fcs
Comment 5 Jan Zajicek 2002-04-22 15:19:23 UTC
Please verify in the Orion builds. Thanks in advance.
Comment 6 jf4jbug 2002-04-23 01:33:56 UTC
I am sorry for the verification.
I think that the following message does not seem to be fixed.

CTL_FileSystemPanel.browse=Browse...
CTL_FileSystemPanel.browse1_Mnemonic=B
CTL_FileSystemPanel.browse2_Mnemonic=R

Could you please investigate this again?

Comment 7 Jan Zajicek 2002-04-25 16:09:47 UTC
Trung?
Comment 8 jf4jbug 2002-04-26 03:29:28 UTC
In editors/FileSystemPanel.java, two mnemonics are assigned to one
CTL_FileSystemPanel.browse. Please fix this.

browseDirButton.setText(java.util.ResourceBundle.getBundle("org/netbeans/beaninfo/editors/Bundle").getString("CTL_FileSystemPanel.browse"));
browseDirButton.setMnemonic
(java.util.ResourceBundle.getBundle("org/netbeans/beaninfo/editors/Bundle").getString("CTL_FileSystemPanel.browse1_Mnemonic").charAt
(0));
       
browseJarButton.setToolTipText(java.util.ResourceBundle.getBundle("org/netbeans/beaninfo/editors/Bundle").getString("CTL_FileSystemPanel.browse"));
browseJarButton.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/beaninfo/editors/Bundle").getString("CTL_FileSystemPanel.browse2_Mnemonic").charAt
(0));
Comment 9 Marian Mirilovic 2002-10-16 17:50:46 UTC
verified in [nb_dev](20021016)
Comment 10 Jesse Glick 2002-12-23 16:37:35 UTC
Consistent use of the I18N keyword.
Comment 11 Quality Engineering 2003-07-01 16:18:39 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.