Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glossary :sorted: directive and internationalization. #9827

Closed
Fipaddict opened this issue Nov 7, 2021 · 0 comments · Fixed by #10091
Closed

Glossary :sorted: directive and internationalization. #9827

Fipaddict opened this issue Nov 7, 2021 · 0 comments · Fixed by #10091

Comments

@Fipaddict
Copy link

Describe the bug

I have problem when translate python glossary :
The french glossary is currently unsorted. Some tests adding :sorted: directive in glossary.rst apparently doesn't help. The :sorted: directive for .. :glossary: seems to be applied before translating file. The result is the glossary apears unsorted in french.

link to original (french) discussion : https://discuss.afpy.org/t/ordre-alphabetique-du-glossaire/594

How to Reproduce

$ git clone https://github.com/python/python-docs-fr
$ cd python-docs-fr
$ pip install -r requirements.txt
$ make
$ make serve
$ # open http://localhost:8000/glossary.html to check items order 

Expected behavior

No response

Your project

https://github.com/python/python-docs-fr

Screenshots

No response

OS

Linux Mint

Python version

3.10

Sphinx version

3.2.1

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

jeanas added a commit to jeanas/sphinx that referenced this issue Jan 11, 2022
This is done by moving the sorting from the glossary directive to a
transform operating after the i18n transform.

Closes sphinx-doc#9827
jeanas added a commit to jeanas/sphinx that referenced this issue Jan 12, 2022
This is done by moving the sorting from the glossary directive to a
transform operating after the i18n transform.

Closes sphinx-doc#9827
jeanas added a commit to jeanas/sphinx that referenced this issue Jan 12, 2022
This is done by moving the sorting from the glossary directive to a
transform operating after the i18n transform.

Closes sphinx-doc#9827
@tk0miya tk0miya added this to the 4.4.0 milestone Jan 12, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants