You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: align cross-reference roles with the English source
13 translated messages use a different role from their msgid, for
example `:data:`typing.Union`` where the source says
`:class:`typing.Union``.
Five of them render with no link at all, because the role points at the
wrong domain:
* library/asyncio-eventloop.po (x3): `socket-unix-constants` is a label,
but the translation used `:py:const:`, which looks for a Python object
of that name and finds none. The `~` prefix is dropped too, since
`:ref:` does not strip a module path.
* whatsnew/3.12.po (x2): `Py_TPFLAGS_ITEMS_AT_END` and
`Py_TPFLAGS_IMMUTABLETYPE` are C macros, but the translation used
`:const:`, which only searches the Python domain.
The other eight still resolve, because the Python domain's `find_obj()`
ignores the object type when the target has no leading dot, so only the
rendered CSS class differs. They are corrected for consistency.
Only the role token changed in each message; the translated text is
otherwise untouched.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments