Fix apostrophe issues

Fixes #1523
This commit is contained in:
TfT_02 2013-10-12 02:35:45 +02:00
parent ed8197bd50
commit 800786111c

View File

@ -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;