-
Notifications
You must be signed in to change notification settings - Fork 61
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
i18n: translating button-ref label results in loss of CSS classes #44
Comments
I would be interested in contributing a fix for this issue. What would be a good place to start looking for the source of this problem? |
Poking around a bit I found that a
While having content will result in the above behaviour
Therefore, my naive guess would be that this is related to the way the content added. Would the piece linked below be the right place to start looking? sphinx-design/sphinx_design/badges_buttons.py Lines 180 to 187 in 6a412a1
|
I'd also like to help get this fixed. Are there any resources you could point me on handling translations with directives? Or an existing workaround that needs testing? |
Related: #96 |
Hey there, any progress on this? |
Hi, @OriolAbril, nice to see you in the thread |
Describe the problem
CSS classes are dropped from button-ref when translating the label. The gettext replacement should only replace the button label rather than the complete directive creating the button.
Link to your repository or website
https://github.com/awvwgk/fpm-docs/blob/main/pages/index.md
Steps to reproduce
Steps to reproduce
Original document:
Translated
button-ref
:The version of Python you're using
3.9.7
Your operating system
Linux
Versions of your packages
Environment file: https://github.com/awvwgk/fpm-docs/blob/main/environment.yaml
Additional context
No response
The text was updated successfully, but these errors were encountered: