How python/python-docs-pl works
Purpose and Scope
This repository is the Polish localization source for Python documentation. Its primary artifacts are gettext .po catalogs, organized to mirror the upstream Python documentation structure. It is not an application or documentation authoring source tree; localized strings are synchronized with Transifex and built by external automation.
Entry Points and Operations
manage_translation.py is the repository’s operational entry point. Contributors use it to regenerate Transifex resource configuration and fetch translated catalogs. README translation-progress badges are generated through code embedded in README.md, using functions from this script.
• manage_translation.py
• README.md
• .tx/config
Translation Catalog Domain Model
Each .po file is an independent gettext resource representing one documentation page/chapter. Catalogs retain source strings, translated Polish strings, and translation metadata; their directory hierarchy is the key integration contract with upstream Python docs and Transifex.
• tutorial/index.po
• library/asyncio.po
• c-api/object.po
Documentation Area Partitioning
Top-level directories partition catalogs by the Python documentation information architecture: language/tutorial material, standard-library APIs, language reference, C API, extension authoring, user guides, FAQs, and release notes. This makes parallel translation work possible while preserving stable upstream resource identities.
• library/index.po
• reference/index.po
• whatsnew/index.po
Synchronization Boundary: Transifex
Transifex is the authoritative collaborative translation service. The local configuration under .tx/ maps repository catalogs to remote resources; manage_translation.py fetch imports current translations. Contributors normally edit through Transifex rather than treating local .po files as an application datastore.
• .tx/config
• manage_translation.py
• README.en.md
Build, Publishing, and Quality Control
GitHub Actions provide the delivery pipeline: translation updates are fetched and documentation is built approximately every 30 minutes; artifacts can be downloaded from Actions, while the public Polish docs are published externally on a daily cadence. A separate lint workflow validates translation/build quality, with status exposed through translations.python.org.
• .github/workflows/update-and-build.yml
• .github/workflows/lint.yml
• .github/workflows/pre-commit.yml
External Runtime and Infrastructure
Operational scripts run in a Python environment, with project metadata/dependencies declared in pyproject.toml. External dependencies are GitHub Actions, Transifex, the Python documentation translation/build infrastructure, and the published site at docs.python.org/pl/. Repository automation also uses Cog to render dynamic README statistics.
• pyproject.toml
• manage_translation.py
• .github/workflows/update-and-build.yml
Main entry points: manage_translation.py Translation manager · update-and-build.yml Update and build · config Transifex mapping · index.po Library catalogs
Components 17
Repository
- Translation manager · Regenerates Transifex configuration and fetches translations.
manage_translation.py - Contributor README · Contains generated translation-progress badges.
README.md - English README
README.en.md - Python project metadata · Declares the script runtime and dependencies.
pyproject.toml - Transifex mapping · Maps local catalog paths to remote translation resources.
.tx/config
Translation catalogs
Gettext resources mirror the upstream Python documentation tree.
- Tutorial catalogs · Language and tutorial documentation resources.
tutorial/index.po - Library catalogs · Standard-library API documentation resources.
library/index.po - Asyncio catalog · One independently synchronized documentation resource.
library/asyncio.po - Reference catalogs · Language-reference documentation resources.
reference/index.po - C API catalog · C API documentation resource.
c-api/object.po - Release-note catalogs · What's New documentation resources.
whatsnew/index.po
Automation
- Update and build · Fetches translations and builds documentation on a recurring schedule.
.github/workflows/update-and-build.yml - Translation lint · Validates translation and build quality.
.github/workflows/lint.yml - Pre-commit checks
.github/workflows/pre-commit.yml
External services
- Transifex · Authoritative collaborative translation service.
- Python docs build infrastructure · Builds localized documentation artifacts.
- Polish documentation site · Externally published Polish Python documentation.
Connections 17
- Contributor README → Translation manager: renders badge statistics
- Python project metadata → Translation manager: provides runtime
- Translation manager → Transifex mapping: regenerates
- Transifex mapping → Transifex: maps resources
- Transifex → Translation manager: translations fetched by
- Translation manager → Tutorial catalogs: updates catalogs
- Translation manager → Library catalogs: updates catalogs
- Translation manager → Reference catalogs: updates catalogs
- Translation manager → C API catalog: updates catalog
- Translation manager → Release-note catalogs: updates catalogs
- Library catalogs → Asyncio catalog: contains resource
- Update and build → Translation manager: runs fetch
- Update and build → Python docs build infrastructure: triggers build
- Python docs build infrastructure → Polish documentation site: publishes daily
- Translation lint → Python docs build infrastructure: validates build quality
- Pre-commit checks → Translation lint: complements checks
- English README → Transifex: documents collaboration boundary