[Doc-SIG] Automation of fetching changes from Transifex

Maciek Olko maciej.olko at gmail.com
Mon Dec 30 06:31:53 EST 2019


Hello,
I'd like to share Python script [1] and GitHub Action definition [2] which
fetch and update translation in python-docs-pl Git repository. It may be of
interest for Transifex-only translation flows.

manage_translations.py removes location comments from PO files to make
diffs in repo more plain.

It was inspired by similar script for Django documentation translations
made by Claude Paroz [3].

Feel free to contact me in case of any questions.

Kind regards,
Maciej

[1]
https://github.com/m-aciek/python-docs-pl/blob/3.8/manage_translations.py#L23-L41
[2]
https://github.com/m-aciek/python-docs-pl/blob/3.8/.github/workflows/update.yml#L8-L27
[3]
https://github.com/django/django-docs-translations/blob/stable/3.0.x/manage_translations.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/doc-sig/attachments/20191230/0c7fa061/attachment.html>


More information about the Doc-SIG mailing list