Skip to content

Conversation

@dariomesic
Copy link

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant