1
0
Fork 0
forked from forgejo/forgejo

Update gitea.com/macaron/i18n (#12806)

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2020-09-10 22:32:58 +01:00 committed by GitHub
parent 47289344e2
commit daefdd1385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 80 additions and 27 deletions

View file

@ -167,7 +167,7 @@ func SetMessageWithDesc(lang, langDesc string, localeFile interface{}, otherLoca
lc.langDesc = langDesc
lc.message = message
if locales.Add(lc) == false {
if !locales.Add(lc) {
return ErrLangAlreadyExist
}
}