Commit 72a52a6d authored by Michal Čihař's avatar Michal Čihař

Better error messages

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 65ab5b7d
......@@ -270,12 +270,16 @@ class LanguageManager(models.Manager):
language = Language.objects.get(code=lang)
except Language.DoesNotExist:
errors.append(
u'missing language {0}'.format(line)
u'missing language {0}: {1} ({2})'.format(
lang, name, plurals
)
)
continue
if nplurals != language.nplurals:
errors.append(
u'different number of plurals {0}'.format(line)
u'different number of plurals {0}: {1} ({2})'.format(
lang, name, plurals
)
)
errors.append(
u'have {0}'.format(language.get_plural_form())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment