René's URL Explorer Experiment


Title: Fix translation of html pages by StanFromIreland · Pull Request #263 · python/python-docs-theme · GitHub

Open Graph Title: Fix translation of html pages by StanFromIreland · Pull Request #263 · python/python-docs-theme

X Title: Fix translation of html pages by StanFromIreland · Pull Request #263 · python/python-docs-theme

Description: There two issues, firstly some languages were not compiled and therefore don't load (e.g. Polish), and secondly, we hijacked the 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/

Open Graph Description: There two issues, firstly some languages were not compiled and therefore don't load (e.g. Polish), and secondly, we hijacked the gettext for html files with python-docs-theme.po, resulting in m...

X Description: There two issues, firstly some languages were not compiled and therefore don't load (e.g. Polish), and secondly, we hijacked the gettext for html files with python-docs-theme.po, resulting ...

Opengraph URL: https://github.com/python/python-docs-theme/pull/263

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5e3f6a71-5ac2-b073-05fa-bd7bd26ee956
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9468:23F8A8:38F64ED:4C63575:69707793
html-safe-nonceae7f6b2798eef4d5c01b01c2454247791053d99a6103f22054860dfaaee1438d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDY4OjIzRjhBODozOEY2NEVEOjRDNjM1NzU6Njk3MDc3OTMiLCJ2aXNpdG9yX2lkIjoiMjgzMzM3ODE3NDY1MDU5MjE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4d831d4272d198b22a9c66144d3b5c120ad2b551634d4fdc9f060af64a1e7601
hovercard-subject-tagpull_request:2812278300
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/python-docs-theme/pull/263/files
twitter:imagehttps://avatars.githubusercontent.com/u/89152624?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/89152624?s=400&v=4
og:image:altThere two issues, firstly some languages were not compiled and therefore don't load (e.g. Polish), and secondly, we hijacked the gettext for html files with python-docs-theme.po, resulting in m...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/python-docs-theme git https://github.com/python/python-docs-theme.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id93341818
octolytics-dimension-repository_nwopython/python-docs-theme
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id93341818
octolytics-dimension-repository_network_root_nwopython/python-docs-theme
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d6181066430cc06553c8396ca201e194ae33cb9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/python-docs-theme/pull/263/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpython-docs-theme%2Fpull%2F263%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpython-docs-theme%2Fpull%2F263%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fpython-docs-theme
Reloadhttps://github.com/python/python-docs-theme/pull/263/files
Reloadhttps://github.com/python/python-docs-theme/pull/263/files
Reloadhttps://github.com/python/python-docs-theme/pull/263/files
python https://github.com/python
python-docs-themehttps://github.com/python/python-docs-theme
Please reload this pagehttps://github.com/python/python-docs-theme/pull/263/files
Notifications https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Fork 75 https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Star 84 https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Code https://github.com/python/python-docs-theme
Issues 12 https://github.com/python/python-docs-theme/issues
Pull requests 4 https://github.com/python/python-docs-theme/pulls
Actions https://github.com/python/python-docs-theme/actions
Projects 0 https://github.com/python/python-docs-theme/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/python-docs-theme/security
Please reload this pagehttps://github.com/python/python-docs-theme/pull/263/files
Insights https://github.com/python/python-docs-theme/pulse
Code https://github.com/python/python-docs-theme
Issues https://github.com/python/python-docs-theme/issues
Pull requests https://github.com/python/python-docs-theme/pulls
Actions https://github.com/python/python-docs-theme/actions
Projects https://github.com/python/python-docs-theme/projects
Security https://github.com/python/python-docs-theme/security
Insights https://github.com/python/python-docs-theme/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fpython-docs-theme%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fpython-docs-theme%2Fissues%2Fnew%2Fchoose
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/python-docs-theme/tree/main
StanFromIreland:fix-translationhttps://github.com/StanFromIreland/python-docs-theme/tree/fix-translation
Conversation 8 https://github.com/python/python-docs-theme/pull/263
Commits 3 https://github.com/python/python-docs-theme/pull/263/commits
Checks 10 https://github.com/python/python-docs-theme/pull/263/checks
Files changed https://github.com/python/python-docs-theme/pull/263/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/263/files
Fix translation of html pages https://github.com/python/python-docs-theme/pull/263/files#top
Show all changes 3 commits https://github.com/python/python-docs-theme/pull/263/files
313a83d Commit StanFromIreland Sep 9, 2025 https://github.com/python/python-docs-theme/pull/263/commits/313a83d59b26409ca78d858a625def791134c612
e670cdf Switch approach StanFromIreland Sep 9, 2025 https://github.com/python/python-docs-theme/pull/263/commits/e670cdf327db3eb2ec6342685e11fd3d8fdfaa1b
c527a81 Add type hints StanFromIreland Sep 10, 2025 https://github.com/python/python-docs-theme/pull/263/commits/c527a8150a288812ca66756e8ae02b8853cadef5
Clear filters https://github.com/python/python-docs-theme/pull/263/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/263/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/263/files
__init__.py https://github.com/python/python-docs-theme/pull/263/files#diff-2f51d58d9c48cf24bc9b13337130902f4b70f78433e97d6a0b22cc97517d8462
python-docs-theme.po https://github.com/python/python-docs-theme/pull/263/files#diff-a4f995d2806d5ae57a0ed6ebc7563ba75947cf0f3c81e615ca5c241577de72ed
python-docs-theme.po https://github.com/python/python-docs-theme/pull/263/files#diff-19e935d1115e1a5f73e86c5b48f7b458f8e8038cfa9c909a3354f9a1f45d36d6
python-docs-theme.po https://github.com/python/python-docs-theme/pull/263/files#diff-b5585d699077dfc49057a717ada270734e291a53ae573d86cc299c9ff0650bd3
python-docs-theme.po https://github.com/python/python-docs-theme/pull/263/files#diff-4b736f5a116a968009b43dc1282bb4bc4f3d14391c5eb774900b802455d4871a
python-docs-theme.po https://github.com/python/python-docs-theme/pull/263/files#diff-2210cfc6f7f98f87d077d624ec85225c83435c7748bf6b483cd4509f3c8b7a14
python-docs-theme.po https://github.com/python/python-docs-theme/pull/263/files#diff-0fb623f197f8c56423f7419b34cf4a927eef71477efcc1261d31b45ea8f9fd36
python-docs-theme.po https://github.com/python/python-docs-theme/pull/263/files#diff-d9e0aee14795b9186aca027ef5f2043e9d92f0f6d880e5c5f49a1b55fa6ef1bd
python_docs_theme/__init__.pyhttps://github.com/python/python-docs-theme/pull/263/files#diff-2f51d58d9c48cf24bc9b13337130902f4b70f78433e97d6a0b22cc97517d8462
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-2f51d58d9c48cf24bc9b13337130902f4b70f78433e97d6a0b22cc97517d8462
https://github.com/python/python-docs-theme/pull/263/files#diff-2f51d58d9c48cf24bc9b13337130902f4b70f78433e97d6a0b22cc97517d8462
Please reload this pagehttps://github.com/python/python-docs-theme/pull/263/files
https://github.com/python/python-docs-theme/pull/263/files#diff-2f51d58d9c48cf24bc9b13337130902f4b70f78433e97d6a0b22cc97517d8462
python_docs_theme/locale/es/LC_MESSAGES/python-docs-theme.pohttps://github.com/python/python-docs-theme/pull/263/files#diff-a4f995d2806d5ae57a0ed6ebc7563ba75947cf0f3c81e615ca5c241577de72ed
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/locale/es/LC_MESSAGES/python-docs-theme.po
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-a4f995d2806d5ae57a0ed6ebc7563ba75947cf0f3c81e615ca5c241577de72ed
https://github.com/python/python-docs-theme/pull/263/files#diff-a4f995d2806d5ae57a0ed6ebc7563ba75947cf0f3c81e615ca5c241577de72ed
python_docs_theme/locale/ja/LC_MESSAGES/python-docs-theme.pohttps://github.com/python/python-docs-theme/pull/263/files#diff-19e935d1115e1a5f73e86c5b48f7b458f8e8038cfa9c909a3354f9a1f45d36d6
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/locale/ja/LC_MESSAGES/python-docs-theme.po
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-19e935d1115e1a5f73e86c5b48f7b458f8e8038cfa9c909a3354f9a1f45d36d6
https://github.com/python/python-docs-theme/pull/263/files#diff-19e935d1115e1a5f73e86c5b48f7b458f8e8038cfa9c909a3354f9a1f45d36d6
python_docs_theme/locale/pl/LC_MESSAGES/python-docs-theme.pohttps://github.com/python/python-docs-theme/pull/263/files#diff-b5585d699077dfc49057a717ada270734e291a53ae573d86cc299c9ff0650bd3
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/locale/pl/LC_MESSAGES/python-docs-theme.po
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-b5585d699077dfc49057a717ada270734e291a53ae573d86cc299c9ff0650bd3
https://github.com/python/python-docs-theme/pull/263/files#diff-b5585d699077dfc49057a717ada270734e291a53ae573d86cc299c9ff0650bd3
python_docs_theme/locale/pt_BR/LC_MESSAGES/python-docs-theme.pohttps://github.com/python/python-docs-theme/pull/263/files#diff-4b736f5a116a968009b43dc1282bb4bc4f3d14391c5eb774900b802455d4871a
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/locale/pt_BR/LC_MESSAGES/python-docs-theme.po
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-4b736f5a116a968009b43dc1282bb4bc4f3d14391c5eb774900b802455d4871a
https://github.com/python/python-docs-theme/pull/263/files#diff-4b736f5a116a968009b43dc1282bb4bc4f3d14391c5eb774900b802455d4871a
python_docs_theme/locale/tr/LC_MESSAGES/python-docs-theme.pohttps://github.com/python/python-docs-theme/pull/263/files#diff-2210cfc6f7f98f87d077d624ec85225c83435c7748bf6b483cd4509f3c8b7a14
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/locale/tr/LC_MESSAGES/python-docs-theme.po
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-2210cfc6f7f98f87d077d624ec85225c83435c7748bf6b483cd4509f3c8b7a14
https://github.com/python/python-docs-theme/pull/263/files#diff-2210cfc6f7f98f87d077d624ec85225c83435c7748bf6b483cd4509f3c8b7a14
python_docs_theme/locale/zh_CN/LC_MESSAGES/python-docs-theme.pohttps://github.com/python/python-docs-theme/pull/263/files#diff-0fb623f197f8c56423f7419b34cf4a927eef71477efcc1261d31b45ea8f9fd36
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/locale/zh_CN/LC_MESSAGES/python-docs-theme.po
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-0fb623f197f8c56423f7419b34cf4a927eef71477efcc1261d31b45ea8f9fd36
https://github.com/python/python-docs-theme/pull/263/files#diff-0fb623f197f8c56423f7419b34cf4a927eef71477efcc1261d31b45ea8f9fd36
python_docs_theme/locale/zh_TW/LC_MESSAGES/python-docs-theme.pohttps://github.com/python/python-docs-theme/pull/263/files#diff-d9e0aee14795b9186aca027ef5f2043e9d92f0f6d880e5c5f49a1b55fa6ef1bd
View file https://github.com/StanFromIreland/python-docs-theme/blob/c527a8150a288812ca66756e8ae02b8853cadef5/python_docs_theme/locale/zh_TW/LC_MESSAGES/python-docs-theme.po
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/python-docs-theme/pull/263/{{ revealButtonHref }}
https://github.com/python/python-docs-theme/pull/263/files#diff-d9e0aee14795b9186aca027ef5f2043e9d92f0f6d880e5c5f49a1b55fa6ef1bd
https://github.com/python/python-docs-theme/pull/263/files#diff-d9e0aee14795b9186aca027ef5f2043e9d92f0f6d880e5c5f49a1b55fa6ef1bd
Please reload this pagehttps://github.com/python/python-docs-theme/pull/263/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.