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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-10-19 10:56:24 +0300
committerBastien Montagne <bastien@blender.org>2020-10-19 10:56:24 +0300
commitae6710aab8b0ca4271db7a04db0b962b79df3191 (patch)
treecc68f0aa2b646aa1cd87825d652901800b652fb3
parenta1f229202345c5e705f3035e2ff418bc3a9fe669 (diff)
Fix (unreported) missing cleanup of commented messages in ui translate tool.
For some reason never noticed that mistake until now.
-rw-r--r--ui_translate/update_svn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui_translate/update_svn.py b/ui_translate/update_svn.py
index 70b7f0b5..2d77dc4a 100644
--- a/ui_translate/update_svn.py
+++ b/ui_translate/update_svn.py
@@ -124,9 +124,10 @@ def i18n_cleanuptranslation_svn_branches_callback(lng, settings):
return
po = utils_i18n.I18nMessages(uid=lng['uid'], kind='PO', src=lng['po_path'], settings=settings)
errs = po.check(fix=True)
+ cleanedup_commented = po.clean_commented()
po.write(kind="PO", dest=lng['po_path'])
print("Processing {} language ({}).\n"
- "Cleaned up {} commented messages.\n".format(lng['name'], lng['uid'], po.clean_commented()) +
+ "Cleaned up {} commented messages.\n".format(lng['name'], lng['uid'], cleanedup_commented) +
("Errors in this po, solved as best as possible!\n\t" + "\n\t".join(errs) if errs else "") + "\n")