Add Language.LanguageName

Fixes #2435
This commit is contained in:
Bjørn Erik Pedersen
2016-09-12 20:57:52 +02:00
parent a7dc3c082e
commit 69a97823c4
3 changed files with 35 additions and 19 deletions

View File

@@ -96,6 +96,8 @@ func toSortedLanguages(l map[string]interface{}) (helpers.Languages, error) {
switch loki {
case "title":
language.Title = cast.ToString(v)
case "languagename":
language.LanguageName = cast.ToString(v)
case "weight":
language.Weight = cast.ToInt(v)
}