Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork66
Move locales dir#224
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Move locales dir#224
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Wulian233 commentedMay 11, 2025
What's the status of this PR now? I was planning to contribute the simplified Chinese(zh_cn) translation after this PR was merged |
I'm still at this:
|
StanFromIreland commentedMay 21, 2025
I managed to get this working, partially. I loaded all footer/header translations but not the ones in the page, i.e. Copy and Copied! I am not quite sure where I went wrong, I will look into it more. |
Uh oh!
There was an error while loading.Please reload this page.
Locales directory needs to be inside the package directory to be installed, so changing the script to place translation files inside seems the best choice. I also added Brazilian Portuguese translation to use as tests.
However, I wasn't able to see the translated theme, so I'm placing this as draft and asking for help.
I tried:
1- building the binary translation file (
msgfmt path/to/file.po -o path/to/file.mo
); and then2- building the doc:
I even can see the binary translation file installed:
📚 Documentation preview 📚:https://python-docs-theme-previews--224.org.readthedocs.build/