X-Git-Url: https://git.pterodactylus.net/?p=jkeytool.git;a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjkeytool%2Fgui%2Fswing%2FSwingInterface.java;h=b67ce8489703d32c937b7a958c3bd7e1cf8e8a17;hp=7574e4a6b9187a6c9a89f41aea43c2bac7bfe2b3;hb=7430f3956390c9784094984eb7de2a1eee833aae;hpb=35bfd61e813bd2545c290ef6decdb987cbc9979d diff --git a/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java b/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java index 7574e4a..b67ce84 100644 --- a/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java +++ b/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java @@ -39,6 +39,7 @@ import javax.swing.JToolBar; 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; @@ -53,6 +54,9 @@ public class SwingInterface implements Interface { /** 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()); @@ -92,14 +96,14 @@ public class SwingInterface implements Interface { // 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) @@ -131,7 +135,7 @@ public class SwingInterface implements Interface { 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();