Now zh_HK, zh_MO are redirected to zh_TW

This commit is contained in:
huangyuhui
2017-01-30 23:18:57 +08:00
parent 899c825813
commit 02d3bd36fe
9 changed files with 9 additions and 10 deletions

View File

@@ -45,7 +45,7 @@ public final class Localization {
if (is == null)
is = getStream("_" + locale.getLanguage());
if (is == null)
is = getStream("_en");
is = getStream("");
if (is == null)
throw new InternalError("Language file missing");

View File

@@ -24,7 +24,7 @@ import java.util.Locale;
* @author huangyuhui
*/
public enum SupportedLocales {
def(Locale.getDefault(), "lang.default"), en(Locale.ENGLISH, null), zh_TW(Locale.TRADITIONAL_CHINESE, null), zh_CN(Locale.SIMPLIFIED_CHINESE, null), vi(new Locale("vi"), null);
def(Locale.getDefault(), "lang.default"), en(Locale.ENGLISH, null), zh(Locale.TRADITIONAL_CHINESE, null), zh_CN(Locale.SIMPLIFIED_CHINESE, null), vi(new Locale("vi"), null);
public Locale self;
private String showString, customized;