修改中英文
This commit is contained in:
parent
ceef0f1e57
commit
f7480c6e43
@ -74,10 +74,12 @@ public class CommonAppContext extends MultiDexApplication {
|
|||||||
} else {
|
} else {
|
||||||
locale = getResources().getConfiguration().locale;
|
locale = getResources().getConfiguration().locale;
|
||||||
}
|
}
|
||||||
if (locale.getLanguage().equals("en")) {
|
if (locale.getLanguage().equals("zh")) {
|
||||||
lang = "english";
|
|
||||||
} else {
|
|
||||||
lang = "chinese";
|
lang = "chinese";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
lang = "english";
|
||||||
|
|
||||||
}
|
}
|
||||||
Log.i("lang", lang);
|
Log.i("lang", lang);
|
||||||
|
|
||||||
|
@ -158,10 +158,12 @@ public class CommonHttpUtil {
|
|||||||
} else {
|
} else {
|
||||||
locale = context.getResources().getConfiguration().locale;
|
locale = context.getResources().getConfiguration().locale;
|
||||||
}
|
}
|
||||||
if (locale.getLanguage().equals("en")) {
|
if (locale.getLanguage().equals("zh")) {
|
||||||
lang = "english";
|
|
||||||
} else {
|
|
||||||
lang = "chinese";
|
lang = "chinese";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
lang = "english";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log.i("来了", lang);
|
Log.i("来了", lang);
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -361,7 +361,6 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
|
|||||||
data.getString("name"),
|
data.getString("name"),
|
||||||
"恭喜您" + data.getString("desc") + "簽到成功!"
|
"恭喜您" + data.getString("desc") + "簽到成功!"
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
//守護
|
//守護
|
||||||
}else if(TextUtils.equals(event.getMethod(), "BuyProtection")){
|
}else if(TextUtils.equals(event.getMethod(), "BuyProtection")){
|
||||||
|
Loading…
Reference in New Issue
Block a user