diff --git a/common/src/main/java/com/yunbao/common/utils/NobleUtil.java b/common/src/main/java/com/yunbao/common/utils/NobleUtil.java index 8f05a4a9e..afe0208c3 100644 --- a/common/src/main/java/com/yunbao/common/utils/NobleUtil.java +++ b/common/src/main/java/com/yunbao/common/utils/NobleUtil.java @@ -23,6 +23,9 @@ public class NobleUtil { return -1; } public static String nobleIdToStringName(int id){ + if(!WordUtil.isNewZh()){ + return nobleIdToStringNameForEn(id); + } switch (id){ case 1:return "男爵"; case 2:return "子爵"; @@ -34,6 +37,18 @@ public class NobleUtil { } 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){ switch (id){ case 1:return R.mipmap.img_aristocrat_nanjue;