修改中英文
This commit is contained in:
@@ -74,10 +74,12 @@ public class CommonAppContext extends MultiDexApplication {
|
||||
} else {
|
||||
locale = getResources().getConfiguration().locale;
|
||||
}
|
||||
if (locale.getLanguage().equals("en")) {
|
||||
lang = "english";
|
||||
} else {
|
||||
if (locale.getLanguage().equals("zh")) {
|
||||
lang = "chinese";
|
||||
|
||||
} else {
|
||||
lang = "english";
|
||||
|
||||
}
|
||||
Log.i("lang", lang);
|
||||
|
||||
|
||||
@@ -158,10 +158,12 @@ public class CommonHttpUtil {
|
||||
} else {
|
||||
locale = context.getResources().getConfiguration().locale;
|
||||
}
|
||||
if (locale.getLanguage().equals("en")) {
|
||||
lang = "english";
|
||||
} else {
|
||||
if (locale.getLanguage().equals("zh")) {
|
||||
lang = "chinese";
|
||||
|
||||
} else {
|
||||
lang = "english";
|
||||
|
||||
}
|
||||
}
|
||||
Log.i("来了", lang);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user