Add a GitHub action to detect stale .po files and update mantainers - #781
Open
flpm wants to merge 3 commits into
Open
Add a GitHub action to detect stale .po files and update mantainers#781flpm wants to merge 3 commits into
flpm wants to merge 3 commits into
Conversation
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 PR sets up a simple way for translation maintainers to monitor when
.pofiles (also called translation catalogs) may be stale and need to be updated.Wait... why don't you just update the
.pofiles in the action instead of detecting?Updating .po files while contributors are working on them will cause merge conflicts when they submit a PR. While those conflicts are easy to fix (for a maintainer) they can be intimidating and scare away new contributors.
Also, it's easier to handle the merge of changes from the source into the
.pofile outside git because sphinx-intl uses msgmerge, which is po-format aware while the git merge driver is not.What was done
How to test
nox -s test-translation-scriptsFollow up work
The final piece (still to do) is to have updates to this issue be posted in the translation channel in slack.
AI Disclaimer
Claude code helped me with part of this, but I take full responsibility for the change.