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 duplicate term when translated in italic #9019

Open
JulienPalard opened this issue Mar 19, 2021 · 0 comments
Open

glossary duplicate term when translated in italic #9019

JulienPalard opened this issue Mar 19, 2021 · 0 comments

Comments

@JulienPalard
Copy link
Contributor

Highly related to: #7418

To Reproduce

$ wget -O- https://mdk.fr/x/2to3.tar.bz2 | tar -xjvf -
$ cd 2to3
$ sphinx-build -b html -qW -D locale_dirs=locales -E -D language=fr  . build/html
Warning, treated as error:
2to3/glossary.rst:8:duplicate term description of 2to3, other instance in glossary

This is due to 2to3 being translated *2to3*.

Expected behavior

I don't expect translation to interfer term linking.

Your project

We found this one on https://github.com/python/python-docs-fr, but it's easier to reproduce using our minimal reproducer.

Environment info

  • OS: Debian
  • Python version: 3.9

We tried multiple Sphinx releases (upstream, not with my reproducer):

  • Sphinx==2.4.4: it works
  • Sphinx==3.2.1: duplicate term when translated error
  • Sphinx==3.3.0: It works
  • Sphinx==3.3.1: It works
  • Sphinx==3.4.0: duplicate term when translated error
  • Sphinx==3.4.1: duplicate term when translated error
  • Sphinx==3.4.2: duplicate term when translated error
  • Sphinx==3.5.1: duplicate term when translated error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants