Issues #243,#326: improved deobfuscation

code formatting
This commit is contained in:
Jindra Petk
2013-08-11 09:44:33 +02:00
parent 089898980f
commit af5038287a
14 changed files with 164 additions and 46 deletions

View File

@@ -53,7 +53,7 @@ public class SelectLanguageDialog extends AppDialog implements ActionListener {
boolean found = false;
int enIndex = 0;
for (String code : languages) {
String name = ResourceBundle.getBundle(AppStrings.getResourcePath(getClass()), Locale.forLanguageTag(code.equals("en")?"":code)).getString("language");
String name = ResourceBundle.getBundle(AppStrings.getResourcePath(getClass()), Locale.forLanguageTag(code.equals("en") ? "" : code)).getString("language");
if (name.length() > 1) {
name = name.substring(0, 1).toUpperCase() + name.substring(1);
}
@@ -111,7 +111,7 @@ public class SelectLanguageDialog extends AppDialog implements ActionListener {
Locale.setDefault(Locale.forLanguageTag(newLanguage));
updateLanguage();
setVisible(false);
AppStrings.updateLanguage();
AppStrings.updateLanguage();
Main.reloadApp();
}
break;