fix wrong accelerators
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Apr 2008 02:30:09 +0000 (02:30 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Apr 2008 02:30:09 +0000 (02:30 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@598 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/gui/I18nAction.java

index 4fa2950..0d36f01 100644 (file)
@@ -64,7 +64,7 @@ public abstract class I18nAction extends AbstractAction {
         */
        public I18nAction(String i18nName, boolean enabled, Icon icon) {
                putValue(Action.NAME, I18n.get(i18nName + ".name"));
-               putValue(Action.MNEMONIC_KEY, (int) I18n.get(i18nName + ".mnemonic").charAt(0));
+               putValue(Action.MNEMONIC_KEY, I18n.getKey(i18nName + ".mnemonic"));
                putValue(Action.ACCELERATOR_KEY, I18n.getKeyStroke(i18nName + ".accelerator"));
                putValue(Action.SHORT_DESCRIPTION, I18n.get(i18nName + ".shortDescription"));
                putValue(Action.LONG_DESCRIPTION, I18n.get(i18nName + ".longDescription"));