[gimp-help/wip/wormnest/python3-migration: 11/13] Fix: incorrect computation of total help-ids for languages other than en.




commit 469ab84056814308fe63835a62c107142ae63269
Author: Jacob Boerema <jgboerema gmail com>
Date:   Sat May 22 13:21:42 2021 -0400

    Fix: incorrect computation of total help-ids for languages other than en.
    
    Also improve text output by adding the language.

 tools/show_translation_progress.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/show_translation_progress.py b/tools/show_translation_progress.py
index c0fe3d833..3e6163df7 100644
--- a/tools/show_translation_progress.py
+++ b/tools/show_translation_progress.py
@@ -125,7 +125,7 @@ class Statistics(object):
         for lang in list(self.docs.keys()):
             other_ids = []
             matched = []
-            todo_ids = self.hp.ids
+            todo_ids = self.hp.ids.copy()
 
             if self.be_verbose:
                 print(f"\nLanguage: {lang}")
@@ -145,7 +145,7 @@ class Statistics(object):
             add = len(other_ids)
             total_done = done + add
             todo = len(todo_ids)
-            print(f"\nTotal help-ids: {self.totals}, of which {done} done and {todo} missing.")
+            print(f"\nLanguage: {lang}. Total help-ids: {self.totals}, of which {done} done and {todo} 
missing.")
             print(f"There are: {done} other help pages for a total of {total_done} pages.")
 
             if done < self.totals:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]