This list is generated by running "tox -e zanata-users-sync"
command to sync translation members up-to-date.
Change-Id: I5a309564fae7229fdc097715bdbb1ce85d109753
Zanata >=4 which is now on production utilizes REST API [1].
This commit fixes zanata_users.py to make compatible with
Zanata REST API and syncs translation_team.yaml up to date.
[1] http://zanata.org/zanata-platform/rest-api-docs/resource_LocalesResource.html
Change-Id: Ia99db310cff236797ef403ba5534d853ed63e3e3
Previously we kept the order of members of individual language teams
in the same order as that of Zanata language team page.
It was mainly to make it the maintenance of the YAML file
as the file is manually maintained.
We use zanata_users.py script to sync translation_team.yaml now,
so the need to keep the order has decreased much.
In addition, it seems Zanata changes the order of members
even when members of a specific language team is not changed.
This happens during the review https://review.openstack.org/#/c/485966/.
This commit change the script to sort members in the alphabetical order.
Change-Id: I09ddc202e0a3021bbc5433e37a5d815c760697ff
After commit 8caba73ceb
translation_team.yaml is now sorted in the alphabeticaly order
of language codes. Before syncing this with Zanata,
this commit reorders the current translation_team.yaml
so that the subsequent commit highlights what are changed.
Change-Id: Ida13a3f1c46ff29df6fa8615c0e4820a2e6f496c
Note: tools/zanata/zanata_stats.py returns an error if
there is no "translators" section in a language in this yaml file.
Change-Id: I00d5a0ee0ec93e8f3856db2232c7c8d1e6d2b5cf
Though the user_id that contains only numbers, for example 1234,
is valid Zanata ID, it raises an exception:
Traceback (most recent call last):
File "./zanata_stats.py", line 271, in <module>
main()
File "./zanata_stats.py", line 261, in main
language_teams, options.project)
File "./zanata_stats.py", line 166, in get_zanata_stats
user_contributes = statisticdata[user_id]
KeyError: 1234
Change-Id: Id1325204d6979190d3c4c6ae5410960fe221b57e
I have compared the list to current members in Zanata
for languages included in the file, and added to the list.
Change-Id: I2863410082826bdf53c3f059cbac64647de294d2
Usage: zanata_stats.py -s 2015-08-01 -e 2016-01-31 translation_team.yaml
zanata_stats.py will query translator's contributions in words,
including the translated translations, approved translations
and rejected translations, in a certain period of all projects and all
versions, and then save the data in a csv file.
translation_team.yaml stores all translation team and translators information.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: If7b92cb2e7ccc3e2e59d977976d7c5d726e606dd