Automation of fetching changes from Transifex

Maciek Olko <[email protected]> Mon, 30 Dec 2019 12:31:53 +0100
Newsgroups gmane.comp.python.documentation
Message-ID <CALYYG80OPh2GOJZSxkeTFvsH6FPKVwF_g6V2j1-_=QepmsJ5KA@mail.gmail.com>
--===============0703396642874496125==
Content-Type: multipart/alternative; boundary="000000000000b97f90059aea31d3"

--000000000000b97f90059aea31d3
Content-Type: text/plain; charset="UTF-8"

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

--000000000000b97f90059aea31d3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"lt=
r">Hello,<div>I&#39;d like to share Python script [1] and GitHub Action def=
inition [2] which fetch and update translation in python-docs-pl Git reposi=
tory. It may be of interest for Transifex-only translation flows.</div><div=
><br></div><div>manage_translations.py<span style=3D"color:rgb(0,0,0);font-=
family:-webkit-standard;font-size:medium">=C2=A0</span>removes location com=
ments from PO files to make diffs in repo more plain.</div><div><br></div><=
div>It was inspired by similar script for Django documentation translations=
 made by Claude Paroz [3].</div><br>Feel free to contact me in case of any =
questions.<div><br></div><div>Kind regards,</div><div>Maciej</div><div><br>=
</div><div>[1] <a href=3D"https://github.com/m-aciek/python-docs-pl/blob/3.=
8/manage_translations.py#L23-L41">https://github.com/m-aciek/python-docs-pl=
/blob/3.8/manage_translations.py#L23-L41</a></div><div>[2]=C2=A0<a href=3D"=
https://github.com/m-aciek/python-docs-pl/blob/3.8/.github/workflows/update=
.yml#L8-L27">https://github.com/m-aciek/python-docs-pl/blob/3.8/.github/wor=
kflows/update.yml#L8-L27</a></div><div>[3] <a href=3D"https://github.com/dj=
ango/django-docs-translations/blob/stable/3.0.x/manage_translations.py">htt=
ps://github.com/django/django-docs-translations/blob/stable/3.0.x/manage_tr=
anslations.py</a></div></div></div></div></div></div></div></div></div></di=
v>

--000000000000b97f90059aea31d3--

--===============0703396642874496125==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Doc-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/doc-sig

--===============0703396642874496125==--