CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html;charset=utf-8
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
set-cookie: trac_form_token=122f1b526abf295245336af2; HttpOnly; Path=/; Secure
set-cookie: trac_session=614d63ea2508c55008dda3e9; expires=Wed, 22 Oct 2025 15:33:03 GMT; HttpOnly; Path=/; Secure
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
accept-ranges: bytes
via: 1.1 varnish, 1.1 varnish
date: Thu, 24 Jul 2025 15:33:03 GMT
x-served-by: cache-fra-etou8220129-FRA, cache-bom-vanm7210071-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753371183.094123,VS0,VE281
vary: Accept-Encoding
TranslatingDocumentation – Django
Back to Top
Django
The web framework for perfectionists with deadlines.
Issues
Summary
This page is a proposal for a workflow to be able to translate Django documentation through po files (and Transifex platform). See also #18108.
Translation storage
Proposal is to store pot files and po translation files in a separate repository (e.g. django-docs-translations). Pot files only take up 4Mb, so considering that for each language, you add ~7Mb, this is too much for the Django main repository.
Workflow
- A modification is done in the /docs dir of Django's repo.
- New pots are automatically built for stable documentation during each documentation build (
update_docs
command of djangoproject.com) and made available at the URLhttps://docs.djangoproject.com/pots/<domain>.pot
.
- Transifex downloads new pot files once or twice a day.
- Translators translate strings on Transifex.
- At defined times, translations are fetched from Transifex and pushed to
django-docs-translations/translations/<locale>/LC_MESSAGES/*.po
(e.g. with Transifex Client).
- Translated docs build:
make translations
indjango-docs-translations
generates .mo files- create a symbolic link
django/docs/locale
pointing todjango-docs-translations/translations
make html LANGUAGE=<locale>
indjango/docs
- Built HTML files are pushed online
Issues
- Some strings are not translatable through po files currently. See https://github.com/django/django/blob/master/docs/_ext/djangodocs.py#L259
- Search should probably be limited in the current language (one search index per language)
Last modified
9 years ago
Last modified on Nov 4, 2016, 1:46:44 PM
Note:
See TracWiki
for help on using the wiki.
Download in other formats:
Django Links
Learn More
Get Involved
Follow Us
- Hosting by In-kind donors
- Design by Threespot &
© 2005-2025 Django SoftwareFoundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.