Minor locale fixes

This commit is contained in:
bm01
2012-04-26 20:09:04 +02:00
parent 295b7a0701
commit 0a5b0eb6d5
16 changed files with 16 additions and 17 deletions

View File

@ -28,9 +28,8 @@ public class mcLocale {
try {
if (RESOURCE_BUNDLE == null) {
Locale.setDefault(new Locale("en", "US"));
String[] myLocale = Config.locale.split("[-_ ]");
Locale locale = null;
String[] myLocale = Config.locale.split("[-_ ]");
if (myLocale.length == 1) {
locale = new Locale(myLocale[0]);