-
Notifications
You must be signed in to change notification settings - Fork 15
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
Is togglebutton_hint translatable? #22
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
It should be translateable but is not currently. I believe we'd need to use this pattern: https://github.com/executablebooks/sphinx-book-theme/blob/master/sphinx_book_theme/topbar.html#L20 here: (and access the |
The place I was referring to is https://github.com/sphinx-doc/sphinx/blob/0476e1cea93b587e3c0ab295aa20b2b9f0f81a34/sphinx/themes/basic/layout.html#L206 using the I don't know which is more appropriate here. |
ahh right - perhaps here is another pattern we could follow: |
This seems to work outside the Sphinx translation mechanism, right? |
well it's not using |
I'm not quite sure how Sphinx's translation system works, sorry for the naive question.
It's nice to have the
togglebutton_hint
string configurable, but I'm not sure whether that's enough (or the right way) to make it translatable.There are other Sphinx features like
copyright
, which have aconf.py
option but also have special markup in the HTML template in order to be translatable. At least that's how I understand it ...The text was updated successfully, but these errors were encountered: