Translations for login form

This commit is contained in:
Jan Dittberner 2021-01-01 12:40:12 +01:00
parent 82918fb782
commit 714a07f162
5 changed files with 71 additions and 4 deletions

View file

@ -38,7 +38,7 @@ func (m *MessageCatalog) LookupErrorMessage(tag string, field string, value inte
m.logger.Infof("no specific error message %s", tag)
message, ok = m.messages["unknown"]
if !ok {
m.logger.Error("no default translation found")
m.logger.Warnf("no default translation found")
return tag
}
}
@ -69,6 +69,7 @@ func (m *MessageCatalog) LookupMessage(id string, templateData map[string]interf
}
return translation
} else {
m.logger.Warnf("no translation found for %s", id)
return id
}
}