[Bf-extensions-cvs] [ae6710aa] master: Fix (unreported) missing cleanup of commented messages in ui translate tool.

Bastien Montagne noreply at git.blender.org
Mon Oct 19 09:57:34 CEST 2020


Commit: ae6710aab8b0ca4271db7a04db0b962b79df3191
Author: Bastien Montagne
Date:   Mon Oct 19 09:56:24 2020 +0200
Branches: master
https://developer.blender.org/rBAae6710aab8b0ca4271db7a04db0b962b79df3191

Fix (unreported) missing cleanup of commented messages in ui translate tool.

For some reason never noticed that mistake until now.

===================================================================

M	ui_translate/update_svn.py

===================================================================

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")



More information about the Bf-extensions-cvs mailing list