Skip to content

Conversation

@AA-Turner
Copy link
Member

@AA-TurnerAA-Turner commented Apr 29, 2023

This comment, which eventually links to this comment point out that Sphinx's support for translating index directives isn't as straightfowards as it could be.

This PR is my best attempt at a workaround -- the reason for the commenting out is that there is a test to check if an entry of a pair directive is one of the already-translated pairindextypes values. As we intend to move away from this, we need Sphinx to believe that these values don't exist, by deleting them when using the gettext builder.

https://github.com/sphinx-doc/sphinx/blob/ba7408209e84ee413f240afc20f3c6b484a81f8f/sphinx/builders/gettext.py#L162-L165

A

@hugovkhugovk merged commit 35d2738 into python:mainMay 4, 2023
@miss-islington
Copy link
Contributor

Thanks @AA-Turner for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-104151 is a backport of this pull request to the 3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11 only security fixes label May 4, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 4, 2023
…H-104000) (cherry picked from commit 35d2738) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@AA-Turner
Copy link
MemberAuthor

Thanks Hugo!

A

hugovk pushed a commit that referenced this pull request May 4, 2023
) (#104151) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@AA-TurnerAA-Turner deleted the old-index-directives/translate-index branch May 4, 2023 10:20
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@AA-Turner@miss-islington@bedevere-bot@hugovk@ezio-melotti