mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
parent
ed8197bd50
commit
800786111c
@ -46,7 +46,7 @@ public final class LocaleLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String getString(String key, ResourceBundle bundle, Object... messageArguments) throws MissingResourceException {
|
private static String getString(String key, ResourceBundle bundle, Object... messageArguments) throws MissingResourceException {
|
||||||
return formatString(bundle.getString(key).replace("\'", "''"), messageArguments);
|
return formatString(bundle.getString(key), messageArguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatString(String string, Object... messageArguments) {
|
public static String formatString(String string, Object... messageArguments) {
|
||||||
@ -56,6 +56,7 @@ public final class LocaleLoader {
|
|||||||
string = formatter.format(messageArguments);
|
string = formatter.format(messageArguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string.replaceAll("\'", "''");
|
||||||
string = addColors(string);
|
string = addColors(string);
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
|
Loading…
Reference in New Issue
Block a user