Skip to content

Fix translation of goddamn html pages - #263

Merged
hugovk merged 3 commits into
python:mainfrom
StanFromIreland:fix-translation
Sep 15, 2025
Merged

hugovk merged 3 commits into
python:mainfrom
StanFromIreland:fix-translation

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Sep 9, 2025 •

Copy link
Copy Markdown
Member

There two issues, firstly some languages were not compiled and therefore don't load (e.g. Polish), and secondly, we hijacked the f*ckin' gettext for html files with python-docs-theme.po, resulting in messages in sphinx.po not loading (e.g. Greek).

Complete preview, built with translations: https://stan.ulbrych.org/preview/theme-translation/ (vs. current docs)

Compilation issue

We now get:

compiling catalog python_docs_theme/locale/zh_TW/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/zh_TW/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/tr/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/tr/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/pt_BR/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/pt_BR/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/sv/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/sv/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/pl/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/pl/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/ja/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/ja/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/zh_CN/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/zh_CN/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/es/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/es/LC_MESSAGES/python-docs-theme.mo
compiling catalog python_docs_theme/locale/el/LC_MESSAGES/python-docs-theme.po to python_docs_theme/locale/el/LC_MESSAGES/python-docs-theme.mo

📚 Documentation preview 📚: https://python-docs-theme-previews--263.org.readthedocs.build/

@StanFromIreland StanFromIreland mentioned this f*ckin' pull request Sep 9, 2025
4 tasks done

@rffontenelle rffontenelle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this f*ckin' comment

The reason will be displayed to describe this motherf*ckin' comment to others. Learn more.

LGTM

Comment thread python_docs_theme/__init__.py Resolved
Comment thread python_docs_theme/__init__.py Resolved
Comment thread python_docs_theme/__init__.py Resolved
@StanFromIreland

Copy link
Copy Markdown
Member Author

Added type hints per documentation.

@hugovk
hugovk merged commit fee2ae0 into python:main Sep 15, 2025
@StanFromIreland
StanFromIreland deleted the fix-translation branch September 15, 2025 16:41
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

4 participants