|
18 | 18 | GOOD_FIRST_ISSUE_LABEL = "good first_issue" |
19 | 19 | ISSUE_LABELS = [PYTHON_VERSION] |
20 | 20 | ISSUE_TITLE = 'Translate `{pofilename}`' |
21 | | -ISSUE_BODY = '''This needs to reach 100% translated. |
| 21 | +ISSUE_BODY = '''This file is {translated_percent}% translated and needs to reach 100%. |
22 | 22 |
|
23 | 23 | The rendered version of this file will be available at https://docs.python.org/es/{python_version}/{urlfile} once translated. |
24 | 24 | Meanwhile, the English version is shown. |
25 | 25 |
|
26 | 26 | Current stats for `{pofilename}`: |
27 | 27 |
|
28 | 28 | - Total entries: {pofile_entries} |
29 | | -- Entries that need work: {pending_entries} - ({pofile_percent_translated}%) |
| 29 | +
|
| 30 | +- Entries that need work: {pending_entries} - ({pending_percent}%) |
30 | 31 | - Fuzzy: {pofile_fuzzy} |
31 | 32 | - Untranslated: {pofile_untranslated} |
32 | 33 |
|
@@ -92,11 +93,12 @@ def issue_generator(self, pofilename): |
92 | 93 | urlfile = pofilename.replace('.po', '.html') |
93 | 94 | title = ISSUE_TITLE.format(pofilename=pofilename) |
94 | 95 | body = ISSUE_BODY.format( |
| 96 | + translated_percent=pofile.percent_translated, |
95 | 97 | python_version=PYTHON_VERSION, |
96 | 98 | urlfile=urlfile, |
97 | 99 | pofilename=pofilename, |
98 | 100 | pofile_fuzzy=pofile.fuzzy, |
99 | | - pofile_percent_translated=pofile.percent_translated, |
| 101 | + pending_percent=100 - pofile.percent_translated, |
100 | 102 | pofile_entries=pofile.entries, |
101 | 103 | pofile_untranslated=pofile.untranslated, |
102 | 104 | pending_entries=pending_entries, |
|
0 commit comments