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 42236 - I18N - Mnemonic keys on multi-bye chars after t9n
Summary: I18N - Mnemonic keys on multi-bye chars after t9n
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2004-04-21 09:44 UTC by yasuhiro
Modified: 2006-01-04 15:46 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 2004-04-21 09:44:55 UTC
On "JarRecipe - Manifest" window, you can see the
following messages:

- Manifest Text:
- Attributes:

Mnemonic key is set on the each first char.

=== ManifestTab.java
manifestTextLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_ManifestText"));
manifestTextLabel.setDisplayedMnemonic(manifestTextLabel.getText().charAt(0));

generationLabel.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_GenerationBorder"));
generationLabel.setDisplayedMnemonic(generationLabel.getText().charAt(0));

But such implementation makes mnemonic keys 
go wrong after translation.
Because the first letter of the translated
message is double-byte char. 

Please add the new messages into the Bundle,
and implement them like follows:

====
manifestTextLabel.setText(org.openide.util.NbBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_ManifestText"));
manifestTextLabel.setDisplayedMnemonic(org.openide.util.NbBundle.getBundle("org/netbeans/modules/jarpackager/Bundle").getString("CTL_ManifestText_MNE").charAt(0));
Comment 1 Ondrej Rypacek 2004-04-21 10:09:51 UTC
The whole JarPackager module is discontinued. Its functionality will
be provided by the new build-system in the next release.