Add a GH action to update the translation issues when .po files change - #789
Draft
flpm wants to merge 3 commits into
Draft
Add a GH action to update the translation issues when .po files change#789flpm wants to merge 3 commits into
flpm wants to merge 3 commits into
Conversation
flpm
marked this pull request as draft
August 10, 2026 13:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is part 4 of the work to create scripts to help maintain translations and their GH issues.
1) Create a translation maintenance issue to track of translation maintenance work and subscribe to Slack #translations#7802) Create a GH action to monitor when the English source of the guide and post a comment on the translation maintenance issue#7813) Split the computation of translation stats from the Sphinx extension so scripts can use it#7864) Create a GH action to keep the translation issues used by contributors up to date when po files change
5) Create a script to create new issues when a new language (or a new .po file) is created
6) Create a simple
create-new-language.pyscript that maintainers can call to take all actions required to add a new language to the guide: creates the po files, adds the language to the list of languages, create the GH issues, etc.7) Document everything in TRANSLATING.md, in a section for maintainers, explaining how this all works and how to use it.
What was done
.pofiles change on main. Checks all locales.refresh_translation_issues.py, called by the actiontest_refresh_translation_issues.pyparent_issue_template.md- See an example of parent issue: Help translate the Python Packaging Guide into Greek #715child_issue_template.md- See an example of sub-issue: Translateindex.pointo Greek #752noxfile.pyso thetest-translation-scriptsaction works with the new testsHow to test
Run
nox -s test-translation-scriptsAI disclosure
Claude code help me to write this code, I reviewed everything the AI wrote and take full responsibility for how it works.