Do not report formatting mismatch between org and translation when message is fuzzy (but "fix" it anyway if asked so).

This commit is contained in:
2013-04-29 18:22:22 +00:00
parent 4ca0df348e
commit b0b634adeb

View File

@@ -463,7 +463,8 @@ class I18nMessages:
tmp[real_key] = msg
done_keys.add(key)
if '%' in msgid and msgstr and len(_format(msgid)) != len(_format(msgstr)):
ret.append("Error! msg's format entities are not matched in msgid and msgstr ({})".format(real_key))
if not msg.is_fuzzy:
ret.append("Error! msg's format entities are not matched in msgid and msgstr ({})".format(real_key))
if fix:
msg.msgstr = ""
for k in rem: