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
{{ message }}
Repository navigation
Availability extension's text translation breaks directive rendering #126609
The availability extension shows "Availability" text in the built docs. In the translation context, "Availability" is available for translation, but translating that text causes hundreds of warnings like this:
Warning: /path/to/cpython/Doc/library/os.rst:181: WARNING: inconsistent term references in translated message. original: ['Availability'], translated: [] [i18n.inconsistent_references]
The translated page will show the translation text ("Disponibilidade", in Portuguese) without the important text: the platforms where it is available. (That's unwanted!)
PL translation got impacted yesterday by this issue. Confirming that translating"Availability" (exposed to translation by the directive) to "Dostępność" (Polish translation) breaks rendering of the directive (as shown on screenshots).
changed the title [-]Availability extension's text translation causes warning[/-][+]Availability extension's text translation breaks directive rendering[/+]on Jan 30, 2025
It seems that I missed the sphinx_gettext call here to allow translation. I've attempted to test #129549 locally and it seems to work, but please could someone here test it with an actual translation?
Activity
AA-Turner commentedon Nov 9, 2024
There's been a few other issues about this extension -- is this related to those at all?
A
rffontenelle commentedon Nov 9, 2024
After reviewing issues and PRs open and closed, it doesn't look like they are related.
For the record, this issues started after extracting
availabilityinto a new extension. I git-checkout'ed it and built the docs to test it.m-aciek commentedon Jan 30, 2025
PL translation got impacted yesterday by this issue. Confirming that translating
"Availability"(exposed to translation by the directive) to"Dostępność"(Polish translation) breaks rendering of the directive (as shown on screenshots).@rffontenelle I suggest renaming the ticket to „Availability extension's text translation breaks directive rendering” or similar.
Broken rendering:

Non-intl rendering:

[-]Availability extension's text translation causes warning[/-][+]Availability extension's text translation breaks directive rendering[/+]StanFromIreland commentedon Jan 30, 2025
I have opened a PR that reverts the move.
pythongh-126609: docs: revert changes made to the internal structure …
m-aciek commentedon Feb 1, 2025
For what it's worth translation
Dostępność <availability>doesn't generate a correct reference.AA-Turner commentedon Feb 1, 2025
It seems that I missed the
sphinx_gettextcall here to allow translation. I've attempted to test #129549 locally and it seems to work, but please could someone here test it with an actual translation?A
gh-126609: Allow translating the ``availability`` directive (#129549)
pythongh-126609: Allow translating the ``availability`` directive (py…
pythongh-126609: Allow translating the ``availability`` directive (py…
[3.12] gh-126609: Allow translating the ``availability`` directive (G…
[3.13] gh-126609: Allow translating the ``availability`` directive (G…
pythongh-126609: Allow translating the ``availability`` directive (py…