fix language settings loading

pull/61/head
Harvey Tindall 4 years ago
parent 27ac0bf43e
commit 882a3467db
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -19,6 +19,7 @@ func (ls *adminLangs) getOptions(chosen string) (string, []string) {
i := 0
for _, lang := range *ls {
opts[i] = lang.Meta.Name
i++
}
return chosenLang, opts
}
@ -39,6 +40,7 @@ func (ls *formLangs) getOptions(chosen string) (string, []string) {
i := 0
for _, lang := range *ls {
opts[i] = lang.Meta.Name
i++
}
return chosenLang, opts
}
@ -58,6 +60,7 @@ func (ls *emailLangs) getOptions(chosen string) (string, []string) {
i := 0
for _, lang := range *ls {
opts[i] = lang.Meta.Name
i++
}
return chosenLang, opts
}

@ -147,7 +147,7 @@ type setting struct {
}
type section struct {
Meta langMeta `json:"meta"`
Meta meta `json:"meta"`
Order []string `json:"order"`
Settings map[string]setting `json:"settings"`
}

Loading…
Cancel
Save