From b0b634adeb3158877466554c9d766148a149e27f Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 29 Apr 2013 18:22:22 +0000 Subject: [PATCH] Do not report formatting mismatch between org and translation when message is fuzzy (but "fix" it anyway if asked so). --- release/scripts/modules/bl_i18n_utils/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index 3fb7f71581b..636e9a4a148 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -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: