From 3e18bcde89f5d5acd399b6365ffdabee27106e46 Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 3 Aug 2015 13:46:58 -0700 Subject: [PATCH] Fix the Launch/Install context menu options not being localized. Fixes #72 --- .../main/java/com/skcraft/launcher/dialog/LauncherFrame.java | 2 +- .../resources/com/skcraft/launcher/lang/Launcher.properties | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java b/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java index dd2c02a..e7dc7af 100644 --- a/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java +++ b/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java @@ -197,7 +197,7 @@ public class LauncherFrame extends JFrame { JMenuItem menuItem; if (selected != null) { - menuItem = new JMenuItem(!selected.isLocal() ? "Install" : "Launch"); + menuItem = new JMenuItem(!selected.isLocal() ? tr("instance.install") : tr("instance.launch")); menuItem.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { diff --git a/launcher/src/main/resources/com/skcraft/launcher/lang/Launcher.properties b/launcher/src/main/resources/com/skcraft/launcher/lang/Launcher.properties index 6b0637d..0e9a59a 100644 --- a/launcher/src/main/resources/com/skcraft/launcher/lang/Launcher.properties +++ b/launcher/src/main/resources/com/skcraft/launcher/lang/Launcher.properties @@ -45,6 +45,8 @@ options.advancedTab=Advanced options.about=About options.launcherConsole=Console +instance.launch=Launch +instance.install=Install instance.openFolder=View folder instance.openSaves=View saves instance.openResourcePacks=View resource packs