GeezerVison is showing github.com — Availability extension's text translation breaks directive rendering · Issue #126609 · python/cpython
Availability extension's text translation breaks directive rendering #126609DescriptionDocumentation
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!)
Some checking around:
Linked PRs
ActivityAA-Turner commented on Nov 9, 2024 There's been a few other issues about this extension -- is this related to those at all?
A rffontenelle commented on Nov 9, 2024 ContributorAuthor More actions After reviewing issues and PRs open and closed, it doesn't look like they are related.
For the record, this issues started after extracting availability into a new extension. I git-checkout'ed it and built the docs to test it. m-aciek commented on 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:
 Reacted by Rafael Fontenelle and Stan Ulbrych changed the title [-]Availability extension's text translation causes warning[/-] [+]Availability extension's text translation breaks directive rendering[/+] on Jan 30, 2025StanFromIreland commented on Jan 30, 2025 I have opened a PR that reverts the move. m-aciek commented on Feb 1, 2025 For what it's worth translation Dostępność <availability> doesn't generate a correct reference.
 AA-Turner commented on Feb 1, 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?
A
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|