REST API: to retrieve all the list of translators or list of translators in a language

Description

[Background]
OpenStack I18n (Internationalization) team uses Zanata quite well and now the team uses Zanata 4.3.3: https://translate.openstack.org/ . In OpenStack projects, all the translation statistics are collected to Stackalytics which provides all the statistics in OpenStack activities: not only translation, but also commits, e-mails in mailing list, bug submissions, and so on. Translation stats are available through http://stackalytics.com/?metric=translations and a list of translators with language teams ( http://git.openstack.org/cgit/openstack/i18n/tree/tools/zanata/translation_team.yaml ) is used for Stackalytics to collect contribution statistics (example specification: http://git.openstack.org/cgit/openstack/stackalytics/tree/etc/default_data.json#n23432 ).

Since there is currently no method to retrieve the list of translators via REST API, I18n team has been doing a trick: crawling method from https://translate.openstack.org/language/list in Zanata 3.9.6 (File source: http://git.openstack.org/cgit/openstack/i18n/tree/tools/zanata/zanata_users.py ).

[Problem]
We now use Zanata 4.3.3, but unfortunately such crawling method does not work anymore for the two reasons:
1) New https://translate.openstack.org/languages page is not anonymous anymore. Login is required to see the content in this page.
2) The HTML markups for UI seems quite different from markups in 3.9.6.

[Feature requests]

  • API for all users per team, with role

Activity

Show:

Ian Y. Choi 1 March 2018 at 02:21
Edited

Solved - I have found how to use, for example:
https://translate.openstack.org/rest/locales & https://translate.openstack.org/rest/locales/locale/ko-KR/members

Updating REST API doc would be nice in future

Ian Y. Choi 1 March 2018 at 02:13

I am not too much sure, but https://zanata.atlassian.net/browse/ZNTA-1915 is related with this feature request? I am asking since seems for Fedora and I could not find REST APIs in the API document: https://zanata.ci.cloudbees.com/job/zanata-api-site/site/zanata-common-api/rest-api-docs/index.html .

Implemented

Details

Assignee

Reporter

Tested Version/s

Priority

More fields

Created 1 March 2018 at 02:11
Updated 1 March 2018 at 12:55
Resolved 1 March 2018 at 02:49