[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56393] trunk/blender/release/scripts/ modules/bl_i18n_utils/utils.py: Do not report formatting mismatch between org and translation when message is fuzzy (but "fix" it anyway if asked so).
Bastien Montagne
montagne29 at wanadoo.fr
Mon Apr 29 20:22:22 CEST 2013
Revision: 56393
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56393
Author: mont29
Date: 2013-04-29 18:22:22 +0000 (Mon, 29 Apr 2013)
Log Message:
-----------
Do not report formatting mismatch between org and translation when message is fuzzy (but "fix" it anyway if asked so).
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bl_i18n_utils/utils.py
Modified: trunk/blender/release/scripts/modules/bl_i18n_utils/utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bl_i18n_utils/utils.py 2013-04-29 17:59:44 UTC (rev 56392)
+++ trunk/blender/release/scripts/modules/bl_i18n_utils/utils.py 2013-04-29 18:22:22 UTC (rev 56393)
@@ -463,7 +463,8 @@
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:
More information about the Bf-blender-cvs
mailing list