Sort entries in translation_team.yaml alphabetically

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
This commit is contained in:
Akihiro Motoki 2017-08-02 05:11:06 +00:00
parent a2762d616c
commit d1056b0f48
2 changed files with 203 additions and 201 deletions

View File

@ -1,7 +1,6 @@
# Language codes: sorted in the alphabetical order (case-sensitive)
# Zanata IDs are sorted in the order of Zanata language team info
# : https://translate.openstack.org/language/list
# : Do not use the alphabetical order to make the maitenance easier.
# This file is generated by tools/zanata/zanata_users.py.
# For more information, see
# https://docs.openstack.org/i18n/latest/tools.html#sync-the-translator-list-with-zanata
Ro:
coordinators:
- cira
@ -59,8 +58,8 @@ brx:
reviewers:
- daisyycguo
translators:
- daisyycguo
- 0ppinkuu0
- daisyycguo
ca:
coordinators:
- daisyycguo
@ -70,10 +69,10 @@ ca:
- daisyycguo
- ealcaniz
translators:
- '1974'
- daisyycguo
- ealcaniz
- iranzo
- '1974'
cs:
coordinators:
- onovy
@ -97,28 +96,28 @@ de:
- rsimai
language: German
reviewers:
- jaegerandi
- cduch
- eumel8
- vcomas3
- jaegerandi
- rsimai
- senk
- vcomas3
translators:
- loewal
- jaegerandi
- cduch
- wall_dirk
- atalanttore
- cduch
- eblock
- flfuchs
- eumel8
- flfuchs
- jaegerandi
- loewal
- lstemmle
- makowals
- vcomas3
- spielkind
- rsimai
- senk
- spielkind
- tjcocozz
- vcomas3
- wall_dirk
el:
coordinators:
- iosifidis
@ -145,15 +144,15 @@ en-GB:
reviewers:
- andibing
- ealcaniz
- robcresswell
- fifieldt
- robcresswell
translators:
- andibing
- ealcaniz
- fifieldt
- jpichon
- nmadhok
- robcresswell
- fifieldt
es:
coordinators:
- ealcaniz
@ -164,37 +163,37 @@ es:
- ccamacho
- ealcaniz
- eugeniato
- gerrivera
- geguileo
- porrua
- mariantb
- gerrivera
- gomarivera
- mariantb
- pcaruana
- pnavarro
- porrua
- tjcocozz
- travisn
translators:
- hybridpollo
- albertomolina
- aesantos
- albertomolina
- camunoz
- ccamacho
- ediardo
- ealcaniz
- ediardo
- egongu90
- toxickore
- eugeniato
- gerrivera
- gguerrer
- gomarivera
- hybridpollo
- iranzo
- josemhb
- porrua
- mariantb
- pabs
- gomarivera
- pcaruana
- iranzo
- pnavarro
- porrua
- tjcocozz
- toxickore
- travisn
- vresy
es-MX:
@ -205,11 +204,11 @@ es-MX:
- heleno_jimenez
- sergioerazo
translators:
- toxickore
- zerick
- heleno_jimenez
- scuellarv
- sergioerazo
- toxickore
- zerick
fi-FI:
coordinators:
- daisyycguo
@ -233,72 +232,73 @@ fil:
- earlvillanueva
fr:
coordinators:
- gonarys
- jftalta
- zigmax
- gonarys
language: French
reviewers:
- adri2000
- angelique_pillal16
- liced
- croe
- corin
- seveillard
- flowalrave
- fdotfr
- pat
- glacoste_16
- jftalta
- kodokuu
- croe
- didier
- mmarin
- zigmax
- obuisson
- paulgonin
- romainsc
- fdotfr
- flowalrave
- glacoste_16
- gonarys
- henris
- jftalta
- kodokuu
- liced
- mmarin
- obuisson
- pat
- paulgonin
- romainsc
- seveillard
- sylvie_chesneau
- ygbo
- zigmax
translators:
- adri2000
- alexisc
- nokostya
- angelique_pillal16
- benjamin_ach
- girardc
- liced
- croe
- corin
- seveillard
- flowalrave
- fdotfr
- gael__
- pat
- glacoste_16
- benjamin
- geraldlonlas
- jftalta
- jfenal
- kodokuu
- didier
- lnic
- sitle
- benjamin_ach
- ciello89
- mmarin
- makowals
- zigmax
- nikoul
- obuisson
- oussemos
- paulgonin
- romainsc
- corin
- croe
- didier
- eouzans
- fdotfr
- flowalrave
- gael__
- gael_rehault
- geraldlonlas
- girardc
- glacoste_16
- gonarys
- henris
- eouzans
- jfenal
- jftalta
- kodokuu
- liced
- lnic
- makowals
- mmarin
- nikoul
- nokostya
- obuisson
- oussemos
- pat
- paulgonin
- romainsc
- seveillard
- sitle
- sylvie_chesneau
- tjcocozz
- ygbo
- zigmax
he:
coordinators:
- daisyycguo
@ -350,17 +350,17 @@ it:
reviewers:
- alessandra
- faber66
- miumiento
- matgand
- itlinux
- matgand
- miumiento
translators:
- alessandra
- dynarro
- fpezzell
- faber66
- miumiento
- matgand
- fpezzell
- itlinux
- matgand
- miumiento
- tjcocozz
- uboscolo
ja:
@ -370,54 +370,54 @@ ja:
language: Japanese
reviewers:
- amotoki
- yosshy
- to222
- myamamot
- to222
- ykatabam
translators:
- amotoki
- akihito_inoh
- yosshy
- nanodayo
translators:
- adocmember
- akihito_inoh
- amotoki
- fifieldt
- ha_miyamoto
- haruki
- otsuka
- hidekazuna
- to222
- ken_ishii
- sasukeh
- macjack
- k_makabe007
- ken_ishii
- macjack
- makita
- mariojv
- masami_sasahara
- masmiyam
- mmasaki
- myamamot
- nanodayo
- nerzie
- adocmember
- noriko
- yuanying
- otsuka
- riku_kobane
- sakaryo
- sasukeh
- sayako
- ststake
- shintaro
- shinya_kwbt
- shu
- tmatsu
- makita
- ststake
- tjcocozz
- fifieldt
- tmatsu
- to222
- tomoki_amano
- tomono_n
- tsutomu_kimura
- yeguchi
- yukinori_yagisawa
- yfukuda
- ykatabam
- yogawa
- yosshy
- yuanying
- yukinori_yagisawa
- yusuke1219
- yuta_hono
- riku_kobane
- masami_sasahara
ka-GE:
coordinators:
- daisyycguo
@ -443,40 +443,40 @@ ko-KR:
- ujuc
language: Korean (South Korea)
reviewers:
- vi01et
- betorvalds
- ianychoi
- jsshin
- kiseok7
- koain
- nexusz99
- ujuc
- wonil22
- koain
translators:
- bryan_tak
- eukim
- vi01et
- heetaeahn
- wonil22
translators:
- betorvalds
- openstack
- bryan_tak
- chancethecoder
- eukim
- heetaeahn
- ianychoi
- janghe11
- jitaejang
- johjuhyun
- jongwooh
- jitaejang
- jsshin
- junheon
- kiseok7
- koain
- michaelko
- seokjae
- minwookshin
- nexusz99
- openstack
- seokjae
- seongu
- seungkyu
- minwookshin
- ujuc
- janghe11
- vi01et
- wonil22
- chancethecoder
- koain
lo:
coordinators:
- saikeo
@ -531,8 +531,8 @@ pl-PL:
reviewers:
- deejay1
translators:
- makowals
- deejay1
- makowals
pt:
coordinators:
- daisyycguo
@ -540,114 +540,114 @@ pt:
reviewers:
- daisyycguo
translators:
- nokostya
- daisyycguo
- nokostya
pt-BR:
coordinators:
- gabrielcw
- marcelodieder
language: Portuguese (Brazil)
reviewers:
- hubner
- marquesc
- fcpimenta
- gabrielcw
- hubner
- lucasagomes
- marcelodieder
- marquesc
- raildomascena
- raquellira
translators:
- dritec
- hubner
- alexpriete
- tpdueg
- nokostya
- andrecampos
- marquesc
- d13
- delesderrier
- diegodalmolin
- mrbits
- d13
- dritec
- ericbaum
- fcpimenta
- gabrielcw
- itiro
- gustavor
- hubner
- itiro
- josemello
- lapalm
- leandro
- lucasagomes
- lapalm
- lveneziano
- marcelodieder
- marcio
- tenoriomarcus
- mariaandrada
- marquesc
- melotto
- mrbits
- nokostya
- raildomascena
- raquellira
- rbraga
- remingtonsb
- renatolipi
- melotto
- rgmorales
- rbraga
- saimonsp
- sanporci
- tenoriomarcus
- tpdueg
- vintbra
- weyderfs
- williandrade
ru:
coordinators:
- zloykaban
- adiantum
- nsmirnov
- zloykaban
language: Russian
reviewers:
- zloykaban
- adiantum
- doug_fish
- ftarasenko
- mokhin2
- adiantum
- shakhat
- kzaitsev
- mbozhenko
- nsmirnov
- mokhin2
- nburtsev
- nmilekhin
- nsmirnov
- shakhat
- vponomaryov
translators:
- aleksey
- anikitenkov
- apapsujko
- zloykaban
- antoniok
translators:
- adiantum
- aleksey
- amikhalev
- v12aml
- dplakhov
- anikitenkov
- antoniok
- apapsujko
- dmakarov
- doug_fish
- dplakhov
- ftarasenko
- sfilatov
- mokhin2
- adiantum
- shakhat
- ikochetova
- ivan_krasilich
- ishashero
- istartsev
- ivan_krasilich
- kzaitsev
- lapalm
- mbozhenko
- nsmirnov
- mokhin2
- nburtsev
- nmilekhin
- nsmirnov
- oleg_myakinkiy
- sfilatov
- shakhat
- thomas_vysokos
- v12aml
- valentin
- vponomaryov
- vstepurova
- vsokolov
- vsevolod_ivaschenko
- vsokolov
- vstepurova
- yryndenkova
- yuliya_sendetskaya
- zloykaban
sl-SI:
coordinators:
- daisyycguo
@ -709,133 +709,133 @@ zh-CN:
- coffee
- daisyycguo
- dliu
- fifieldt
- jimmyli
- johnwoo_lee
- lindayang
- liuchaoxin
- liujunpeng
- lvfyongfeng
- tianzhong
- fifieldt
- tfu
- tianzhong
- vuuv
- yanheven
- zhaochao
- zzxwill
- johnwoo_lee
translators:
- 979zhang
- actionchen
- aeng
- xiangbinbin
- bakbad2015
- billxiang
- bin
- bakbad2015
- blkart
- caihui
- zhouchangxun
- chenli
- ccheng
- changhuiyuan
- chenli
- chenyingkof
- coffee
- cuixiaoyu
- daisyycguo
- dliu
- leiyahsuai
- neteric
- domine
- e010
- fifieldt
- fionahuang
- forever
- zhugaoxiao
- yinguowei
- fuzhaokun
- gecong
- guluyang
- guochunting
- guoshan
- openstackhc
- lihongweibj
- fionahuang
- changhuiyuan
- h3c_wuhan
- hutao
- huyupeng
- indicolite
- irina
- javeme
- liujiong
- jelanliu
- jimmyli
- liyucai
- johnwoo_lee
- lapalm
- lawrence
- leiyahsuai
- lichunhan
- lihongweibj
- likun
- lindayang
- linlin
- linwwu
- guluyang
- liuchaoxin
- liujiong
- liujunpeng
- liuqing
- liuyanfu
- mimisheep
- lapalm
- liyucai
- lony
- lugangliang
- lvfyongfeng
- macjack
- maoshuai
- lugangliang
- jelanliu
- meteor
- mimisheep
- neteric
- openstackhc
- petro
- pollyz
- qiaiyuan
- qingszhao
- rustinpeace
- zhsj
- sunanchen
- sunjing
- hutao
- tfu
- tianyu
- tianzhong
- tigerfang
- fifieldt
- tfu
- topicblue
- vuuv
- wangfang
- woshishui419
- h3c_wuhan
- wuyongpeng
- xhkjoe
- xiangbinbin
- xiangqiao
- zhongtian
- xuyang
- yaguang
- topicblue
- yanheven
- yanghy
- e010
- chenyingkof
- yanheven
- yinguowei
- yongjiexu
- yongxiangwang
- lony
- yuzg
- huyupeng
- zenglulu
- zhangdebo
- zhangjingwen
- zhaochao
- fuzhaokun
- zhengjie7800
- lawrence
- zhonghuali
- zhongjun2
- zhongtian
- zhouchangxun
- zhsj
- zhugaoxiao
- zzxwill
- xhkjoe
- domine
- johnwoo_lee
zh-TW:
coordinators:
- ccheng
- derekjhyang
- jameslee
- hhuang
- jameslee
- macjack
- zero00072
language: Chinese (Taiwan)
reviewers:
- ccheng
- derekjhyang
- hhuang
- jameslee
- jenniferkuo
- hhuang
- macjack
- zero00072
translators:
@ -843,28 +843,28 @@ zh-TW:
- bluet
- bokaitseng
- ccheng
- igene
- danny
- derekjhyang
- e010
- elliswu
- lihongweibj
- fifieldt
- fionahuang
- hhuang
- igene
- jameslee
- jenniferkuo
- hhuang
- kayukiang
- kyle
- t09sunny
- lapalm
- lihongweibj
- macjack
- max821214
- mikeli
- rico
- starbops
- t09sunny
- terrytai820
- fifieldt
- webberguo
- willychen
- xuyang
- e010
- max821214
- starbops
- zero00072

View File

@ -23,10 +23,9 @@ import yaml
base_url = "https://translate.openstack.org/%s"
yaml_comment = """\
# Language codes: sorted in the alphabetical order (case-sensitive)
# Zanata IDs are sorted in the order of Zanata language team info
# : https://translate.openstack.org/language/list
# : Do not use the alphabetical order to make the maitenance easier.
# This file is generated by tools/zanata/zanata_users.py.
# For more information, see
# https://docs.openstack.org/i18n/latest/tools.html#sync-the-translator-list-with-zanata
"""
@ -128,6 +127,9 @@ def collect_zanata_language_and_members():
if role == 'coordinators':
languages[language]['translators'].append(user_id)
languages[language]['reviewers'].append(user_id)
# Sort each member list alphabetically
for role in ['translators', 'reviewers', 'coordinators']:
languages[language][role].sort()
result = OrderedDict((k, languages[k]) for k in sorted(languages))
return result