Title: Move locales dir by rffontenelle · Pull Request #224 · python/python-docs-theme · GitHub
Open Graph Title: Move locales dir by rffontenelle · Pull Request #224 · python/python-docs-theme
X Title: Move locales dir by rffontenelle · Pull Request #224 · python/python-docs-theme
Description: 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 then 2- building the doc: git clone https://github.com/python/docsbuild-scripts python ./docsbuild-scripts/build_docs.py --quick --build-root ./build_root --www-root ./www --log-directory ./logs --group "$(id -g)" --skip-cache-invalidation --theme "$(pwd)" --language pt-br --branch 3.13 I even can see the binary translation file installed: $ find build_root -name messages.mo build_root/venv-3.13/lib/python3.13/site-packages/python_docs_theme/locales/pt_BR/LC_MESSAGES/messages.mo 📚 Documentation preview 📚: https://python-docs-theme-previews--224.org.readthedocs.build/
Open Graph Description: 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 transla...
X Description: 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 transla...
Opengraph URL: https://github.com/python/python-docs-theme/pull/224
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:28fa2d46-20a9-f78e-d431-f65740aa2e29 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A5C0:2A1D2C:808FDB:ACC54E:697010D9 |
| html-safe-nonce | d1828bef4cda75979da9a96868dfd837b4670f4fc3fbc5d03d71072e73fe8e94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUMwOjJBMUQyQzo4MDhGREI6QUNDNTRFOjY5NzAxMEQ5IiwidmlzaXRvcl9pZCI6Ijk1ODIzNDI3MjM5MDQ1MTQxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9f6502dc95f19dfe58eeae34261be2fece1d9ca64ecc81cc2cc6037c7042825c |
| hovercard-subject-tag | pull_request:2369564536 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/python-docs-theme/pull/224/files |
| twitter:image | https://avatars.githubusercontent.com/u/1571783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1571783?s=400&v=4 |
| og:image:alt | 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 transla... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/python-docs-theme git https://github.com/python/python-docs-theme.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 93341818 |
| octolytics-dimension-repository_nwo | python/python-docs-theme |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93341818 |
| octolytics-dimension-repository_network_root_nwo | python/python-docs-theme |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width