mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Merge pull request #2551 from lol768/patch-1
Escape apostrophes in localised strings
This commit is contained in:
commit
60d89c15e6
@ -57,7 +57,7 @@ public final class LocaleLoader {
|
||||
public static String formatString(String string, Object... messageArguments) {
|
||||
if (messageArguments != null) {
|
||||
MessageFormat formatter = new MessageFormat("");
|
||||
formatter.applyPattern(string);
|
||||
formatter.applyPattern(string.replace("'", "''"));
|
||||
string = formatter.format(messageArguments);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user