Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9938321

Browse files
committed
fixes in body issue
1 parent 9461867 commit 9938321

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/create_issue.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
GOOD_FIRST_ISSUE_LABEL = "good first_issue"
1919
ISSUE_LABELS = [PYTHON_VERSION]
2020
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%.
2222
2323
The rendered version of this file will be available at https://docs.python.org/es/{python_version}/{urlfile} once translated.
2424
Meanwhile, the English version is shown.
2525
2626
Current stats for `{pofilename}`:
2727
2828
- Total entries: {pofile_entries}
29-
- Entries that need work: {pending_entries} - ({pofile_percent_translated}%)
29+
30+
- Entries that need work: {pending_entries} - ({pending_percent}%)
3031
- Fuzzy: {pofile_fuzzy}
3132
- Untranslated: {pofile_untranslated}
3233
@@ -92,11 +93,12 @@ def issue_generator(self, pofilename):
9293
urlfile = pofilename.replace('.po', '.html')
9394
title = ISSUE_TITLE.format(pofilename=pofilename)
9495
body = ISSUE_BODY.format(
96+
translated_percent=pofile.percent_translated,
9597
python_version=PYTHON_VERSION,
9698
urlfile=urlfile,
9799
pofilename=pofilename,
98100
pofile_fuzzy=pofile.fuzzy,
99-
pofile_percent_translated=pofile.percent_translated,
101+
pending_percent=100 - pofile.percent_translated,
100102
pofile_entries=pofile.entries,
101103
pofile_untranslated=pofile.untranslated,
102104
pending_entries=pending_entries,

0 commit comments

Comments
 (0)