部分中文转换为多语言代号

This commit is contained in:
刘祥超
2023-06-28 16:18:52 +08:00
parent 70452428ab
commit a5e53df998
25 changed files with 195 additions and 125 deletions

View File

@@ -51,7 +51,7 @@ func (this *AdminAction) RunGet(params struct {
// 权限
moduleMaps := []maps.Map{}
for _, m := range configloaders.AllModuleMaps(this.Lang()) {
for _, m := range configloaders.AllModuleMaps(this.LangCode()) {
code := m.GetString("code")
isChecked := false
for _, module := range admin.Modules {

View File

@@ -20,7 +20,7 @@ func (this *CreatePopupAction) Init() {
}
func (this *CreatePopupAction) RunGet(params struct{}) {
this.Data["modules"] = configloaders.AllModuleMaps(this.Lang())
this.Data["modules"] = configloaders.AllModuleMaps(this.LangCode())
this.Show()
}

View File

@@ -59,7 +59,7 @@ func (this *UpdateAction) RunGet(params struct {
}
// 权限
var moduleMaps = configloaders.AllModuleMaps(this.Lang())
var moduleMaps = configloaders.AllModuleMaps(this.LangCode())
for _, m := range moduleMaps {
code := m.GetString("code")
isChecked := false