diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-29 22:22:22 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-29 22:22:22 +0400 |
commit | b0b634adeb3158877466554c9d766148a149e27f (patch) | |
tree | 607bdde19d44912661b8ffcef458b11e57424b2c /release/scripts | |
parent | 4ca0df348efc93994f0ebb0827f8b6e38792c469 (diff) |
Do not report formatting mismatch between org and translation when message is fuzzy (but "fix" it anyway if asked so).
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |