Revert "[ci skip] Try to decrease complexity"
This reverts commit 39e94c6ea79d16c78fc23c04700c8595a241085d.
This commit is contained in:
parent
39e94c6ea7
commit
e79036d42f
@ -91,15 +91,11 @@ public class I18NUtils {
|
|||||||
// return "zhmc";
|
// return "zhmc";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Match locale code with "_"
|
|
||||||
return matchLocale(locale, settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String matchLocale(String locale, Settings settings) {
|
|
||||||
if (locale.contains("_")) {
|
if (locale.contains("_")) {
|
||||||
locale = locale.substring(0, locale.indexOf("_"));
|
locale = locale.substring(0, locale.indexOf("_"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Match locale code with "_"
|
||||||
if (LOCALE_LIST.contains(locale)) {
|
if (LOCALE_LIST.contains(locale)) {
|
||||||
return locale;
|
return locale;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user