- or '--all' to create the issues for all untranslated files that doesn't have an open issue already
- or '--one' to create the next one issue
"""
importos
importsys
fromglobimportglob
frompathlibimportPath
fromgithubimportGithub
frompotodo.potodoimportPoFileStats
PYTHON_VERSION="3.13"
PENDING_ENTRIES_FOR_GOOD_FIRST_ISSUE=5
GOOD_FIRST_ISSUE_LABEL="good first issue"
ISSUE_LABELS= [PYTHON_VERSION]
ISSUE_TITLE='Translate `{pofilename}`'
ISSUE_BODY='''This file is {translated_percent}% translated and needs to reach 100%.
The rendered version of this file will be available at https://docs.python.org/es/{python_version}/{urlfile} once translated.
Meanwhile, the English version is shown.
Current stats for `{pofilename}`:
- Total entries: {pofile_entries}
- Entries that need work: {pending_entries} - ({pending_percent}%)
- Fuzzy: {pofile_fuzzy}
- Untranslated: {pofile_untranslated}
Please, comment here if you want this file to be assigned to you and a member will assign it to you as soon as possible, so you can start working on it.
Remember to follow the steps in our [Contributing Guide](https://python-docs-es.readthedocs.io/page/CONTRIBUTING.html).'''