- Utilizes logging instead of oslo_log and catagorizs log messages
into debug, error, info, and warning logs.
- Implements --debug option to also see debug logs
(by default, debug logs are not seen to output).
Change-Id: Ib2b29896ca596f24cfb0c18602334435be6c2e13
The script generates a csv file by reading a yaml file
which contains the list of translators (e.g., translation_team.yaml)
with user name and e-mail addresses by interacting with Zanata API.
The script utilizes ZanataUtils in openstack-infra/project-config
to read zanata.ini configuration file which contains Zanata API key.
Note that the Zanata API key is required to use Zanata accounts API.
Change-Id: I078742c5956b2c72eb1dabb10b9d3b4667b8f7e6
* Convert more functions to class methods.
It allows us to have related stuffs in one place.
* Avoid using 'yield'. 'yield' itself is useful,
but there is no need to use this for small iterations.
Code readability will be better if we return a list.
* Raise an exception when an exception occurs in
read_uri() and read_json_from_uri(). Catching an exception
in these methods just leads to other unexpected error.
If reraising an exception brings, debugging will be easier.
* Move the sort logic to User.__lt__ method.
* Load language team YAML file after checking options.
Change-Id: I9b668e4606f783fbb87e920a4802947c7efe4eb3
* requests library handles differences in Python 2 and 3 efficiently.
Let's switch to requests rather than using the lower-level urllib.
* CSV writer in Python3 expects a file is open as
non-binary mode. In Python 2, binary mode is expected.
Change-Id: Ied870913de54975ea2d734e719f05c1e342620eb
Zanata 3.9.6 changes the format of statistics data.
This commit updates the tool to support 3.9.6.
The old format from the old Zanata used at translate.openstack.org
is no longer supported.
Closes-Bug: #1670638
Change-Id: I692a995142529c4df1e2664264afc19496bf71ed
I18n team now has official mascot - Parrot!
Logo files are needed to be managed by a repository
to make them useful for future usage such as incorporating
into translation platform dashboard (i.e., translate.o.o).
Change-Id: I2bed3e09c1c62aa411050e5777ccf134227ede32
We have a number of language team now.
translation_team.yaml is previously sorted based on the number
of translators, but it means the order of language teams can be
changed time to time. Alphabetical order will reduce accidental
big diff and makes easier to search.
Change-Id: Ib704d9f88d4ea7f6b18a390c956538072b52ac0d
HTML of individual language page was changed in Zanata 3.9.6.
This commit catches up with the change.
Closes-Bug: #1670725
Change-Id: I77df5c1f4b716b395f0f686b6a9e2e48649bedcf
Unfortunately current Zanata 3.7.3 does not support
member list API. This tool is developed to retrieve member
list in Zanata and save the list into yaml based format.
The output file name is translation_team.yaml by default,
and the name can be changed using -o option.
Note that this tool uses BeautifulSoap4 and requests
libraries.
Change-Id: Iaf3d845514e85f8c160efdf6c10afeaaf8077857
Co-Authored-By: Ian Y. Choi <ianyrchoi@gmail.com>
- Changes the title, since the title "Release Management" might
infer Release Management team and their activities
- Adds detail introduction why the activities in this document
is important with releases
- Light style adjustment for better rendering into HTML
Change-Id: I4ea05bbf0033e5f7e22c7537c908a05a84bc412e
- It is important to also mention TC election.
- "more than" 300 words for translation and review metrics
has been considered for ATC list.
- Publicizes ATC statistics.
Since actual statistics data is added periodically with
releases, it is better to have a link to Wiki.
Change-Id: Ifc663323f258d15ff566bc902bfdcd3ed71d4fed
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
To be co-installable with other OpenStack projects and have consistent
testing it's a good idea (tm) to use constraints when creating tox
environments.
Change-Id: I776ac1ae0ef5067bc9679cad97a643ec8f852eb9
Currently the automatic translation imports link to
https://wiki.openstack.org/wiki/Translations/Infrastructure . That page
is inadequate now for reviewers. Let's write a new page targetting
reviewers of these imports and use that new page as reference.
Change-Id: I9b59e154d970a5667aee64e23e71ca3677c0026b