Re: Status for Transifex-based translations

Shengjing Zhu <[email protected]> Sat, 4 May 2019 23:08:44 +0800
Newsgroups gmane.comp.python.documentation
Message-ID <CAG+qr1Exq1vTzitVs=tbr5A+iMb3MNk7K-sbYTrxcuDhRaVwSA@mail.gmail.com>
Hi,

On Sat, May 4, 2019 at 10:42 PM Maciek Olko <[email protected]> wrote:
>
> Hello,
>
> I want to share with you a small script that displays translation status for language switcher for Transifex-based translations. The script is using Transifex API [1] and requires Transifex API token.
>
> https://github.com/m-aciek/python-docs-pl-status/blob/master/checkstatus.py
>
> It generates README.md file with status. Currently, for Polish translation it is 5.17%.
>

FWIW, I've set up a public service[1] 1 month ago, which proxies the
Transifex projects API[2](this API is different from what your used,
it calculates all resource by Transifex) with my own API key.

It's used to show dynamic badge on github repository for zh_CN translation[3].

Example usage:
https://img.shields.io/badge/dynamic/json.svg?label=<whaterver>&query=$.<lang>&url=http://gce.zhsj.me/python/newest

[1] http://gce.zhsj.me/python/
[2] https://docs.transifex.com/api/projects
[3] https://raw.githubusercontent.com/python/python-docs-zh-cn/master/README.rst

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