import net.pterodactylus.jkeytool.core.Core;
import net.pterodactylus.jkeytool.gui.Interface;
import net.pterodactylus.jkeytool.main.Main;
+import net.pterodactylus.util.i18n.I18n;
import net.pterodactylus.util.i18n.gui.I18nAction;
import net.pterodactylus.util.i18n.gui.I18nMenu;
import net.pterodactylus.util.swing.StatusBar;
/** The core to control. */
private Core core;
+ /** The I18n container. */
+ private I18n i18n = new I18n("jkeytool", SwingInterface.class);
+
/** The main frame. */
private JFrame mainFrame = new JFrame("jkeytool " + Main.getVersion());
//
private void createActions() {
- createKeyStoreAction = new I18nAction("jkeytool.action.createKeyStore") {
+ createKeyStoreAction = new I18nAction(i18n, "jkeytool.action.createKeyStore") {
@SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
createKeyStore();
}
};
- quitAction = new I18nAction("jkeytool.action.quit") {
+ quitAction = new I18nAction(i18n, "jkeytool.action.quit") {
/**
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
private JMenuBar createMenubar() {
JMenuBar menubar = new JMenuBar();
- JMenu fileMenu = new I18nMenu("jkeytool.menu.file");
+ JMenu fileMenu = new I18nMenu(i18n, "jkeytool.menu.file");
menubar.add(fileMenu);
fileMenu.add(createKeyStoreAction);
fileMenu.addSeparator();
--- /dev/null
+jkeytool.action.createKeyStore.name: New Key Store
+jkeytool.action.createKeyStore.mnemonic: VK_N
+jkeytool.action.createKeyStore.accelerator: Ctrl-VK_N
+jkeytool.action.createKeyStore.shortDescription: Creates a new key store
+jkeytool.action.createKeyStore.longDescription: Creates a new key store
+
+jkeytool.action.quit.name: Quit
+jkeytool.action.quit.mnemonic: VK_Q
+jkeytool.action.quit.accelerator: Ctrl-VK_Q
+jkeytool.action.quit.shortDescription: Quit jkeytool
+jkeytool.action.quit.longDescription: Quit jkeytool
+
+jkeytool.menu.file.name: File
+jkeytool.menu.file.mnemonic: VK_F
+++ /dev/null
-jkeytool.action.createKeyStore.name: New Key Store
-jkeytool.action.createKeyStore.mnemonic: VK_N
-jkeytool.action.createKeyStore.accelerator: Ctrl-VK_N
-jkeytool.action.createKeyStore.shortDescription: Creates a new key store
-jkeytool.action.createKeyStore.longDescription: Creates a new key store
-
-jkeytool.action.quit.name: Quit
-jkeytool.action.quit.mnemonic: VK_Q
-jkeytool.action.quit.accelerator: Ctrl-VK_Q
-jkeytool.action.quit.shortDescription: Quit jkeytool
-jkeytool.action.quit.longDescription: Quit jkeytool
-
-jkeytool.menu.file.name: File
-jkeytool.menu.file.mnemonic: VK_F