补充英文

This commit is contained in:
zlzw 2023-08-15 14:07:33 +08:00
parent 41c8783b53
commit fd0ad36a58

View File

@ -23,6 +23,9 @@ public class NobleUtil {
return -1; return -1;
} }
public static String nobleIdToStringName(int id){ public static String nobleIdToStringName(int id){
if(!WordUtil.isNewZh()){
return nobleIdToStringNameForEn(id);
}
switch (id){ switch (id){
case 1:return "男爵"; case 1:return "男爵";
case 2:return "子爵"; case 2:return "子爵";
@ -34,6 +37,18 @@ public class NobleUtil {
} }
return "未开通"; return "未开通";
} }
public static String nobleIdToStringNameForEn(int id){
switch (id){
case 1:return "baron";
case 2:return "viscount";
case 3:return "marquis";
case 4:return "duke";
case 5:return "king";
case 6:return "emperor";
case 7:return "SuperEmperor";
}
return "Not Opened";
}
public static int getNobleBackgroundId(int id){ public static int getNobleBackgroundId(int id){
switch (id){ switch (id){
case 1:return R.mipmap.img_aristocrat_nanjue; case 1:return R.mipmap.img_aristocrat_nanjue;