checkLanguage static method
void
checkLanguage()
Implementation
static void checkLanguage() {
// 获取当前语言
//Log.i(tag, "checkLanguage:localeName:"+Platform.localeName.toString());
//已经手动设置语言,则不再检查语言变化
if(forceLanguage!=null){
return;
}
//检查语言是否变化
if(currentLocaleName==Platform.localeName){
return;
}
//发生变化
currentLocaleName=Platform.localeName;
//加载语言
loadLanguage(currentLocaleName);
}