Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-04-29 22:22:22 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-04-29 22:22:22 +0400
commitb0b634adeb3158877466554c9d766148a149e27f (patch)
tree607bdde19d44912661b8ffcef458b11e57424b2c /release
parent4ca0df348efc93994f0ebb0827f8b6e38792c469 (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')
-rw-r--r--release/scripts/modules/bl_i18n_utils/utils.py3
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: