Repository navigation
ci(i18n): add translation and POT validation workflow - #150
Merged
Merged
Conversation
Add SHA-pinned GitHub Actions workflow validating plugin .po and .pot files: - msgfmt -c -v -o /dev/null syntax and format-string checks - Devanagari-danda-safe msgcheck==4.2.0 linting (hi/mr/ne/sa) - Placeholder and HTML tag parity audit matching Cacti/cacti#8970 - POT source-string lint (plural periods, HTML balance, php-format prose) Uses incremental --base comparison so pre-existing upstream baseline issues do not break unrelated PRs, and runs a validator self-test on workflow edits. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Replace the copied validation steps with a call to the reusable workflow in Cacti/cacti, which runs msgfmt, msgcheck and the .po and .pot audits from the shared scripts in tests/tools. The triggers and the job name stay the same. Depends on Cacti/cacti#8977, which adds the reusable workflow. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
xmacan
approved these changes
Nov 26, 2026
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.



Adds
.github/workflows/i18n-validation.yml, a short caller of the sharedreusable-i18n-validation.ymlworkflow in Cacti/cacti. The checks and their scripts live in one place, so every plugin runs the same validation and a fix there reaches all of them.It runs on changes to
locales/po/*.po,locales/po/*.potor the workflow file, withpermissions: contents: read. For the changed catalogs it runs:msgfmt -csyntax and format-string checks;msgcheckthroughtests/tools/run_msgcheck.py, which accepts the Devanagari danda (।);tests/tools/audit_po.py);locales/po/cacti.pot(tests/tools/audit_pot.py).The audits compare against the PR base, so issues already in a catalog do not fail unrelated changes.
Depends on Cacti/cacti#8977, which adds the reusable workflow and
audit_pot.py. Until that merges, this check cannot start.actionlintreports no findings for the caller.