Skip to content

Conversation

@dariomesic
Copy link
Contributor

@dariomesic dariomesic commented Oct 28, 2025

Purpose

This PR addresses the FIXME in _NodeUpdater class (in sphinx/transforms/i18n.py) which noted that the existing check for reference mismatches was too simple.

The previous logic only compared the count of references, which could miss mismatches if a translator accidentally changed a reference but kept the same total number.

This PR implements the "smarter strategy" by comparing the lists of ref.rawsource directly. This will now correctly warn if the references themselves are different, not just their count.

@dariomesic dariomesic marked this pull request as ready for review October 28, 2025 16:49
@AA-Turner AA-Turner merged commit aeabc11 into sphinx-doc:master Nov 24, 2025
29 of 30 checks passed
@AA-Turner AA-Turner added this to the 9.0.0 milestone Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants