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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user