Translating (original) (raw)

View this page

Edit this page

Toggle table of contents sidebar

Python documentation translations are governed by PEP 545. They are built by docsbuild-scripts and hosted on docs.python.org. There are several documentation translations already in production; others are works in progress. See the dashboard for details.

Language Contact Links
Arabic (ar) Abdur-Rahmaan Janhangeer (@Abdur-rahmaanJ) GitHub
Bengali (bn_IN) Kushal Das (@kushaldas) GitHub
French (fr) Julien Palard (@JulienPalard) GitHub
Greek (gr) Lysandros Nikolaou (@lysnikolaou), Fanis Petkos (@thepetk), Panagiotis Skias (@skpanagiotis) GitHub
Hindi (hi_IN) Sanyam Khurana (@CuriousLearner) GitHub
Hungarian (hu) Tamás Bajusz (@gbtami) GitHub,mailing list
Indonesian (id) Oon Arfiandwi (@oonid) GitHub
Italian (it) Alessandro Cucci (email) GitHub,original mail
Japanese (ja) Kinebuchi Tomohiko (@cocoatomo), Atsuo Ishimoto (@atsuoishimoto) GitHub
Korean (ko) 오동권 (@flowdas) GitHub
Marathi (mr) Sanket Garade (@sanketgarade, email) GitHub
Lithuanian (lt) Albertas Gimbutas (@albertas, email) Original mail
Persian (fa) Alireza Shabani (@revisto) GitHub
Polish (pl) Maciej Olko (@m-aciek) GitHub,Transifex,original mail
Portuguese (pt) Gustavo Toffo
Brazilian Portuguese (pt-br) Rafael Fontenelle (@rffontenelle), Marco Rougeth (@rougeth) GitHub,wiki,Telegram,article
Romanian (ro) Octavian Mustafa (@octaG-M, email) GitHub
Russian (ru) Daniil Kolesnikov (@MLGRussianXP, email) GitHub,mail
Simplified Chinese (zh-cn) Shengjing Zhu (@zhsj), Du, Meng (@dumeng) GitHub,Transifex
Spanish (es) Raúl Cumplido GitHub
Traditional Chinese (zh-tw) 王威翔 Matt Wang (@mattwang44), Josix Wang GitHub
Turkish (tr) Ege Akman (@egeakman) GitHub,RTD
Ukrainian (uk) Dmytro Kazanzhy (@kazanzhy, email) GitHub,Transifex

Starting a new translation

First subscribe to the translation mailing list, and introduce yourself and the translation you’re starting. Translations fall under the aegis of the PSF Translation Workgroup

Then you can bootstrap your new translation by using cookiecutter orbootstrapper.

The important steps look like this:

PEP 545 summary

Here are the essential points of PEP 545:

How to get help

Discussions about translations occur on the Python Docs Discord#translations channel, translation mailing list, and there’s a Libera.Chat IRC channel, #python-doc.

Translation FAQ

Which version of the Python documentation should be translated?

Consensus is to work on the current stable version. You can then propagate your translation from one branch to another using pomerge.

Are there tools to help in managing the repo?

Here’s what we’re using:

More related tools and projects can be found in thepython-docs-translations organisation on GitHub.

How is a coordinator elected?

There is no election; each translation has to sort this out. Here are some suggestions.

The entry for my translation is missing/not up to date on this page

Ask on the translation mailing list, or better, make a PR on the devguide.

I have a translation, but it’s not in Git. What should I do?

You can ask for help on the translation mailing list, and the team will help you create an appropriate repository. You can still use tools like transifex, if you like.

My Git hierarchy does not match yours. Can I keep it?

No, inside the github.com/python organization we’ll all have the exact same hierarchy so bots will be able to build all of our translations. So you may have to convert from one hierarchy to another. Ask for help on the translation mailing list if you’re not sure on how to do it.

What hierarchy should I use in my GitHub repository?

As for every project, we have a branch per version. We store .pofiles in the root of the repository using the gettext_compact=0style.

How should I translate code examples?

Translate values in code examples (i.e. string literals) and comments. Don’t translate keywords or names, including variable, function, class, argument, and attribute names.