mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Escape apostrophes
"The java.text.MessageFormat class uses the apostrophe (\u0027) as an escape character. Consequently, you need to write two consecutive apostrophes in your translation if you wish to display a single apostrophe"
This commit is contained in:
parent
ecfdd75e36
commit
de38826897
@ -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