Application does not need restart for language change.

This commit is contained in:
Jindra Petk
2013-08-10 16:22:31 +02:00
parent 756150fc58
commit 12baee11b6
12 changed files with 69 additions and 17 deletions

View File

@@ -2210,15 +2210,7 @@ public class MainFrame extends AppRibbonFrame implements ActionListener, TreeSel
}
break;
case "SETLANGUAGE":
String newLanguage = new SelectLanguageDialog().display();
if (newLanguage != null) {
if (newLanguage.equals("en")) {
newLanguage = "";
}
Configuration.setConfig("locale", newLanguage);
View.showMessageDialog(null, "Changing language needs application restart.\r\nApplication will exit now, please run it again.");
Main.exit();
}
new SelectLanguageDialog().display();
break;
case "DISABLEDECOMPILATION":
Configuration.setConfig("decompile", !miDecompile.isSelected());