[gimp-help/wip/wormnest/python3-migration: 17/19] Fix: incorrect computation of total help-ids for languages other than en.
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-help/wip/wormnest/python3-migration: 17/19] Fix: incorrect computation of total help-ids for languages other than en.
- Date: Fri, 28 May 2021 22:07:04 +0000 (UTC)
commit d58f1e9fe8e1104e1dfa4ff498714a1f361fbdb5
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]