1
0
forked from GitHub/gf-core

bugfix with the keyboard label for Chinese

This commit is contained in:
kr.angelov
2014-02-25 12:15:29 +00:00
parent 3ea92a59d5
commit adca68ecaf

View File

@@ -36,9 +36,12 @@ public class TranslatorKeyboard extends Keyboard {
}
public static String getLanguageKeyLabel(Language lang) {
return
LocaleUtils.parseJavaLocale(lang.getLangCode(), Locale.getDefault())
.getISO3Language();
if ("cmn-hans-cn".equalsIgnoreCase(lang.getLangCode())) // this one has no ISO code
return "chi";
else
return
LocaleUtils.parseJavaLocale(lang.getLangCode(), Locale.getDefault())
.getISO3Language();
}
@Override