-
Notifications
You must be signed in to change notification settings - Fork 339
Translations for page elements #257
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
Comments
note there are individual translations for "next" "previous" and "page", so as a minimum you could just use those i.e. |
I see the project has no PO or MO files. If I were to provide Spanish and French translations, would they be merged? |
Does this mean that Sphinx would be able to translate these files? I'd be +1 on this, though we should also document the files in the docs so others know how to edit them etc |
My understanding is that at minimum MO files must be committed in the theme, e.g. https://github.com/sphinx-doc/sphinx/tree/4.x/sphinx/locale contains strings for files in the basic theme. Same for sphinx_rtd_theme and others. Committing the PO file makes it much easier to update the MO file. |
Why is there a I don't think the theme should be using |
Mostly because that's the folder name that Sphinx uses in |
Hmm, well I think it's fine for a theme to use any name. I remove the |
I'm a bit confused why some templates are in |
I'm personally fine with it - we were just following convention I think. I think the idea is that the HTML templates in the main folder are larger structural pieces, and |
I'm pretty sure the next/previous page translations don't work here, because the internal sphinx catalog (https://github.com/sphinx-doc/sphinx/tree/3.x/sphinx/locale) does not contain translations for them (the
_
filter is a shorthand for using this)https://github.com/pandas-dev/pydata-sphinx-theme/blob/7163801b25d3e2f15a06fa403bac4fbd00818198/pydata_sphinx_theme/layout.html#L7-L10
FYI I noticed this whilst adding a custom translation catalog to sphinx-book-theme: executablebooks/sphinx-book-theme@d2a8b44 😄
We could think about adding something similar here
The text was updated successfully, but these errors were encountered: