mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-02 12:35:27 +02:00
Update code style
This commit is contained in:
@@ -13,7 +13,8 @@ public final class LocaleLoader {
|
||||
private static ResourceBundle bundle = null;
|
||||
private static ResourceBundle enBundle = null;
|
||||
|
||||
private LocaleLoader() {}
|
||||
private LocaleLoader() {
|
||||
}
|
||||
|
||||
public static String getString(String key) {
|
||||
return getString(key, (Object[]) null);
|
||||
@@ -22,7 +23,7 @@ public final class LocaleLoader {
|
||||
/**
|
||||
* Gets the appropriate string from the Locale files.
|
||||
*
|
||||
* @param key The key to look up the string with
|
||||
* @param key The key to look up the string with
|
||||
* @param messageArguments Any arguments to be added to the string
|
||||
* @return The properly formatted locale string
|
||||
*/
|
||||
@@ -33,12 +34,10 @@ public final class LocaleLoader {
|
||||
|
||||
try {
|
||||
return getString(key, bundle, messageArguments);
|
||||
}
|
||||
catch (MissingResourceException ex) {
|
||||
} catch (MissingResourceException ex) {
|
||||
try {
|
||||
return getString(key, enBundle, messageArguments);
|
||||
}
|
||||
catch (MissingResourceException ex2) {
|
||||
} catch (MissingResourceException ex2) {
|
||||
if (!key.contains("Guides")) {
|
||||
mcMMO.p.getLogger().warning("Could not find locale string: " + key);
|
||||
}
|
||||
@@ -79,8 +78,7 @@ public final class LocaleLoader {
|
||||
|
||||
if (myLocale.length == 1) {
|
||||
locale = new Locale(myLocale[0]);
|
||||
}
|
||||
else if (myLocale.length >= 2) {
|
||||
} else if (myLocale.length >= 2) {
|
||||
locale = new Locale(myLocale[0], myLocale[1]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user