Commit 5224c8ad authored by hujiebin's avatar hujiebin

翻译1

parent ecf01181
......@@ -38,16 +38,16 @@ var (
CpLevel4: "icon4.png",
CpLevel5: "icon5.png",
}
// cp特权名称 // todo 翻译
// cp特权名称
CpPrivilegeNameMsgId = map[CpPrivilege]uint{
CpPrivilegeSpace: 0,
CpPrivilegeBanner: 0,
CpPrivilegeMedal: 0,
CpPrivilegeCert: 0,
CpPrivilegeRoomEffect: 0,
CpPrivilegeHeadwear: 0,
CpPrivilegeActiveProfile: 0,
CpPrivilegeMicEffect: 0,
CpPrivilegeSpace: 234,
CpPrivilegeBanner: 235,
CpPrivilegeMedal: 236,
CpPrivilegeCert: 237,
CpPrivilegeRoomEffect: 238,
CpPrivilegeHeadwear: 239,
CpPrivilegeActiveProfile: 240,
CpPrivilegeMicEffect: 241,
}
// cp特权描述 // todo 翻译
CpPrivilegeDescMsgId = map[CpPrivilege]uint{
......
......@@ -93,6 +93,7 @@ func CopyCpLevelPrivilegeList(Level cp_e.CpLevel, lang string) []CvPrivilege {
copy(privileges, CpLevelPrivilegeList[Level])
for i, v := range privileges {
privileges[i].Name = GetTranslate(v.NameMsgId, lang)
privileges[i].Desc = GetTranslate(v.DescMsgId, lang)
}
return privileges
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment