Add check-structure.php, comparing translation structure at declared revision - #342
Merged
Merged
Conversation
…revision The qaxml-* scripts compare a translation with the current doc-en file, so a file waiting for a sync reports differences that are only lag. This one reads the revision tag of each file and compares with doc-en at that revision, so those files produce no alert and the check can block a pull request. Six translations carry a copy of this script in their own .github/scripts directory, in three variants; one of them never received the fix that added href and xpointer to the compared attributes, and lets a translated XInclude target through.
lacatoire
force-pushed
the
translation/check-structure
branch
from
September 9, 2026 12:14
b4b2b8e to
fa1dfd0
Compare
Member
Author
|
Corrected PL build here php/doc-pl#36 |
alfsb
approved these changes
Sep 9, 2026
alfsb
left a comment
Member
There was a problem hiding this comment.
Thanks for keeping the uncommon code style.
This was referenced Sep 10, 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.
Compares the block structure of translated files with doc-en: the elements and their nesting, not the prose they contain.
Six translations already run it from their own copy, in three variants; one of them never received the fix that added
hrefandxpointerto the compared attributes, and lets a translated XInclude target through.Checked against doc-fr: 11359 files, 6 differences, the same ones its local copy reports.
First consumer: php/doc-fr#3544.