Commit 076055b3 authored by hujiebin's avatar hujiebin

Merge branch 'feature/cp-new' into feature/3.9.0

parents f9fcc225 5224c8ad
...@@ -38,16 +38,16 @@ var ( ...@@ -38,16 +38,16 @@ var (
CpLevel4: "icon4.png", CpLevel4: "icon4.png",
CpLevel5: "icon5.png", CpLevel5: "icon5.png",
} }
// cp特权名称 // todo 翻译 // cp特权名称
CpPrivilegeNameMsgId = map[CpPrivilege]uint{ CpPrivilegeNameMsgId = map[CpPrivilege]uint{
CpPrivilegeSpace: 0, CpPrivilegeSpace: 234,
CpPrivilegeBanner: 0, CpPrivilegeBanner: 235,
CpPrivilegeMedal: 0, CpPrivilegeMedal: 236,
CpPrivilegeCert: 0, CpPrivilegeCert: 237,
CpPrivilegeRoomEffect: 0, CpPrivilegeRoomEffect: 238,
CpPrivilegeHeadwear: 0, CpPrivilegeHeadwear: 239,
CpPrivilegeActiveProfile: 0, CpPrivilegeActiveProfile: 240,
CpPrivilegeMicEffect: 0, CpPrivilegeMicEffect: 241,
} }
// cp特权描述 // todo 翻译 // cp特权描述 // todo 翻译
CpPrivilegeDescMsgId = map[CpPrivilege]uint{ CpPrivilegeDescMsgId = map[CpPrivilege]uint{
......
...@@ -94,6 +94,7 @@ func CopyCpLevelPrivilegeList(Level cp_e.CpLevel, lang string) []CvPrivilege { ...@@ -94,6 +94,7 @@ func CopyCpLevelPrivilegeList(Level cp_e.CpLevel, lang string) []CvPrivilege {
copy(privileges, CpLevelPrivilegeList[Level]) copy(privileges, CpLevelPrivilegeList[Level])
for i, v := range privileges { for i, v := range privileges {
privileges[i].Name = GetTranslate(v.NameMsgId, lang) privileges[i].Name = GetTranslate(v.NameMsgId, lang)
privileges[i].Desc = GetTranslate(v.DescMsgId, lang)
} }
return privileges 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