Skip to content

Commit eeb1019

Browse files
authored
Merge pull request #3276 from Multiverse/fix/locale-lowercase
Fix message key lowercase issues if java environment is non-english
2 parents 6bbaad8 + 170e1ac commit eeb1019

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/org/mvplugins/multiverse/core/locale/MVCorei18n.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import org.mvplugins.multiverse.core.locale.message.Message;
99
import org.mvplugins.multiverse.core.locale.message.MessageReplacement;
1010

11+
import java.util.Locale;
12+
1113
/**
1214
* All the translation keys for the core plugin
1315
*/
@@ -351,7 +353,8 @@ public enum MVCorei18n implements MessageKeyProvider {
351353

352354
// END CHECKSTYLE-SUPPRESSION: Javadoc
353355

354-
private final MessageKey key = MessageKey.of("mv-core." + this.name().replace('_', '.').toLowerCase());
356+
private final MessageKey key = MessageKey.of("mv-core." + this.name().replace('_', '.')
357+
.toLowerCase(Locale.ENGLISH));
355358

356359
/**
357360
* {@inheritDoc}

0 commit comments

Comments
 (0)