Update transifex to APIv3

This commit is contained in:
ByteHamster 2021-04-21 22:32:09 +02:00
parent ec148b0a23
commit 034ba87021
4 changed files with 82 additions and 57 deletions

File diff suppressed because one or more lines are too long

View File

@ -4,8 +4,8 @@ mfietz;6860662;Maintainer (retired)
TomHennen;5216560;Maintainer (retired)
orionlee;250644;Contributor
domingos86;9538859;Contributor
damoasda;46045854;Contributor
tonytamsf;149837;Contributor
damoasda;46045854;Contributor
andersonvom;69922;Contributor
TacoTheDank;32376686;Contributor
shortspider;5712543;Contributor
@ -47,6 +47,7 @@ saqura;1935380;Contributor
binarytoto;75904760;Contributor
bibz;5141956;Contributor
hzulla;1705654;Contributor
jonasburian;15125616;Contributor
deandreamatias;21011641;Contributor
MeirAtIMDDE;4421079;Contributor
egsavage;126165;Contributor
@ -59,6 +60,7 @@ rezanejati;16049370;Contributor
twiceyuan;2619800;Contributor
JessieVela;33134794;Contributor
HaBaLeS;730902;Contributor
peakvalleytech;65185819;Contributor
volhol;11587858;Contributor
michaelmwhite;28901334;Contributor
CameronBanga;611354;Contributor
@ -66,7 +68,6 @@ HrBDev;25826502;Contributor
HolgerJeromin;2410353;Contributor
xisberto;1914956;Contributor
jmue;898577;Contributor
jonasburian;15125616;Contributor
katrinleinweber;9948149;Contributor
LatinSuD;451487;Contributor
24hours;650407;Contributor
@ -92,14 +93,17 @@ mamehacker;16738348;Contributor
skitt;2128935;Contributor
Thom-Merrilin;76849828;Contributor
wseemann;2296196;Contributor
datavizard;44409076;Contributor
markamaze;17114678;Contributor
mohitshah3111999;42018918;Contributor
moralesg;14352147;Contributor
mr-intj;6268767;Contributor
tamizh143;50977879;Contributor
tuxayo;2678215;Contributor
alimemonzx;44647595;Contributor
dev-darrell;52300159;Contributor
jmdouglas;10855634;Contributor
jhenninger;197274;Contributor
olivoto;15932680;Contributor
PtilopsisLeucotis;54054883;Contributor
abhinavg1997;60095795;Contributor
@ -123,6 +127,7 @@ Geist5000;37940313;Contributor
jklippel;8657220;Contributor
jannic;232606;Contributor
Foso;5015532;Contributor
CreamyCookie;3063858;Contributor
Kaligule;3586246;Contributor
kvithayathil;1056073;Contributor
luiscruz;1080714;Contributor
@ -169,4 +174,5 @@ lightonflux;1377943;Contributor
minusf;3632883;Contributor
s3lph;5564491;Contributor
tamizh138;26201258;Contributor
trevortabaka;1552990;Contributor
zawad2221;32180355;Contributor

1 ByteHamster 5811634 Maintainer
4 TomHennen 5216560 Maintainer (retired)
5 orionlee 250644 Contributor
6 domingos86 9538859 Contributor
damoasda 46045854 Contributor
7 tonytamsf 149837 Contributor
8 damoasda 46045854 Contributor
9 andersonvom 69922 Contributor
10 TacoTheDank 32376686 Contributor
11 shortspider 5712543 Contributor
47 binarytoto 75904760 Contributor
48 bibz 5141956 Contributor
49 hzulla 1705654 Contributor
50 jonasburian 15125616 Contributor
51 deandreamatias 21011641 Contributor
52 MeirAtIMDDE 4421079 Contributor
53 egsavage 126165 Contributor
60 twiceyuan 2619800 Contributor
61 JessieVela 33134794 Contributor
62 HaBaLeS 730902 Contributor
63 peakvalleytech 65185819 Contributor
64 volhol 11587858 Contributor
65 michaelmwhite 28901334 Contributor
66 CameronBanga 611354 Contributor
68 HolgerJeromin 2410353 Contributor
69 xisberto 1914956 Contributor
70 jmue 898577 Contributor
jonasburian 15125616 Contributor
71 katrinleinweber 9948149 Contributor
72 LatinSuD 451487 Contributor
73 24hours 650407 Contributor
93 skitt 2128935 Contributor
94 Thom-Merrilin 76849828 Contributor
95 wseemann 2296196 Contributor
96 datavizard 44409076 Contributor
97 markamaze 17114678 Contributor
98 mohitshah3111999 42018918 Contributor
99 moralesg 14352147 Contributor
100 mr-intj 6268767 Contributor
101 tamizh143 50977879 Contributor
102 tuxayo 2678215 Contributor
103 alimemonzx 44647595 Contributor
104 dev-darrell 52300159 Contributor
105 jmdouglas 10855634 Contributor
106 jhenninger 197274 Contributor
107 olivoto 15932680 Contributor
108 PtilopsisLeucotis 54054883 Contributor
109 abhinavg1997 60095795 Contributor
127 jklippel 8657220 Contributor
128 jannic 232606 Contributor
129 Foso 5015532 Contributor
130 CreamyCookie 3063858 Contributor
131 Kaligule 3586246 Contributor
132 kvithayathil 1056073 Contributor
133 luiscruz 1080714 Contributor
174 minusf 3632883 Contributor
175 s3lph 5564491 Contributor
176 tamizh138 26201258 Contributor
177 trevortabaka 1552990 Contributor
178 zawad2221 32180355 Contributor

View File

@ -1,45 +1,46 @@
Arabic;abuzar3.khalid, badarotti, keunes, MustafaAlgurabi, nabilMaghura, rex07, shubbar
Asturian (ast_ES);enolp
Asturian (ast_ES);enolp, keunes
Basque;gaztainalde, keunes, Osoitz, pospolos
Breton;Belvar, keunes
Breton;Belvar, Eorn, keunes
Bulgarian;keunes, ma4ko, solusitor
Catalan;carles.llacer, dvd1985, exort12, IvanAmarante, javiercoll, keunes, Kintu, lambdani, marcmetallextrem, xc70
Chinese (zh_CN);brnme, cyril3, Felix2yu, gaohongyuan, Guaidaodl, Huck0, iconteral, jhxie, jxj2zzz79pfp9bpo, keunes, kyleehee, molisiye, owen8877, RainSlide, RangerNJU, Sak94664, spice2wolf, tupunco, wongsyrone, yangyang, yiqiok
Chinese (zh_CN);Biacke, brnme, cyril3, Felix2yu, gaohongyuan, Guaidaodl, Huck0, iconteral, jhxie, jxj2zzz79pfp9bpo, keunes, kyleehee, molisiye, owen8877, RainSlide, RangerNJU, Sak94664, spice2wolf, tupunco, wongsyrone, yangyang, yiqiok
Chinese (zh_TW);bobchao, ijliao, keunes, mapobi, pggdt, ymhuang0808
Czech (cs_CZ);anotheranonymoususer, elich, Hanzmeister, md.share, svetlemodry, Thomaash
Danish;JFreak, jhertel, keunes, petterbejo, SebastianKiwiDk
Danish;JFreak, jhertel, keunes, mikini, petterbejo, SebastianKiwiDk
Dutch;e2jk, keunes, rwv, Vistaus
Estonian;Eraser, keunes, mahfiaz
Finnish;Ban3, keunes, Sahtor
French;ChaoticMind, clombion, Cornegidouille, e2jk, keunes, lacouture, LouFex, Matth78, petterbejo, Poussinou, RomainTT, sterylmreep
Finnish;Ban3, keunes, ktstmu, noppa, Sahtor
French;ayiniho, ChaoticMind, clombion, Cornegidouille, e2jk, keunes, lacouture, LouFex, Matth78, petterbejo, Poussinou, RomainTT, sterylmreep
Galician;antiparvos, pikamoku, Raichely
German;_Er, ByteHamster, ceving, dadosch, DerSilly, elkangaroo, enz, f_grubm, finsterwalder, forght, hbilke, HolgerJeromin, JoeMcFly, kalei, keunes, max.wittig, mfietz, Michael_Strecke, petterbejo, pudeeh, Quiss42, repat, toaskoas, tomte, tweimer, Willhelm, ypid
Modern Greek (1453-);AnimaRain, antonist, keunes, pavlosv
German;_Er, axre, ByteHamster, ceving, dadosch, DerSilly, elkangaroo, enz, f_grubm, finsterwalder, forght, hbilke, HolgerJeromin, JoeMcFly, JoniArida, kalei, keunes, max.wittig, mfietz, Michael_Strecke, petterbejo, pudeeh, Quiss42, repat, timo.rohwedder, toaskoas, tomte, tweimer, Willhelm, ypid
Hebrew (he_IL);amir.dafnyman, E1i9, mongoose4004, pinkasey, rellieberman, Yaron
Hindi (hi_IN);keunes, purple.coder, siddhusengar, thelazyoxymoron
Hu;hurrikan, keunes, lna91, marthynw, meskobalazs, naren93
Icelandic;keunes, marthjod
Indonesian;dbrw, keunes, levirs565
Italian (it_IT);aalex70, allin, alvami, Bonnee, dontknowcris, giuseppep, Guybrush88, ilmanzo, keunes, m.chinni, marco_pag, neonsoftware, niccord, salorock, theloca95
Japanese;keunes, KotaKato, Naofumi, sh3llc4t, TranslatorG
Japanese;ayiniho, keunes, KotaKato, Naofumi, sh3llc4t, TranslatorG
Kannada (kn_IN);chiraag.nataraj, keunes, thejeshgn
Ko;changwoo, keunes, libliboom
Lithuanian;keunes, naglis, Sharper
Macedonian;krisfremen
Malayalam;joice, keunes, rashivkp
Norwegian Bokmål (nb_NO);abstrakct, ahysing, bablecopherye, corkie, forteller, heraldo, jakobkg, keunes, kongk, sevenmaster, timbast
Modern Greek (1453-);AnimaRain, antonist, keunes, pavlosv
Norwegian Bokmål (nb_NO);abstrakct, ahysing, bablecopherye, corkie, forteller, heraldo, jakobkg, keunes, kongk, sevenmaster, tc5, timbast
Persian;ahangarha, danialbehzadi, ebadi, ebraminio, F7D, hamidrezabayat76, keunes, sinamoghaddas
Polish (pl_PL);befeleme, hiro2020, Iwangelion, kamila.miodek1991, keunes, lomapur, mandlus, maniexx, Mephistofeles, shark103, tyle
Portuguese;emansije, keunes, smarquespt
Portuguese;emansije, keunes, smarquespt, WalkerPt
Portuguese (pt_BR);alexupits, alysonborges, andersonvom, aracnus, arua, bandreghetti, caioau, carlo_valente, castrors, edman, keunes, lipefire, mbaltar, olivoto, rogervezaro, RubeensVinicius, SamWilliam
Romanian (ro_RO);corneliu.e, fuzzmz, keunes, ralienpp
Russian (ru_RU);ashed, btimofeev, Duke_Raven, gammja, homocomputeris, IgorPolyakov, keunes, mercutiy, null, overmind88, Platun0v, PtilopsisLeucotis, s.chebotar, tepxd, un_logic, Vladryyu, whereisthetea
Slovak;ati3, jose1711, keunes, marulinko, tiborepcek
Slovenian (sl_SI);asovic, keunes, panter23, trus2
Spanish;AleksSyntek, andersonvom, andrespelaezp, Atreyu94, CaeM0R, deandreamatias, dvd1985, elojodepajaro, Fitoschido, frandavid100, hard_ware, javiercoll, keunes, LatinSuD, leogrignafini, rafael.osuna, tres.14159, vfmatzkin, wakutiteo
Spanish;AleksSyntek, andersonvom, andrespelaezp, Atreyu94, CaeM0R, carlos.levy, deandreamatias, dvd1985, elojodepajaro, Fitoschido, frandavid100, hard_ware, javiercoll, keunes, LatinSuD, leogrignafini, meanderingDot, rafael.osuna, tres.14159, vfmatzkin, wakutiteo
Swahili (macrolanguage);1silvester, keunes, kmtra
Swedish (sv_SE);bpnilsson, keunes, nilso, TwoD
Tatar;seber
Telugu;keunes, veeven
Turkish;AhmedDuran, brsata, Erdy, keunes, overbite, Slsdem
Ukrainian (uk_UA);keunes, older, paul_sm, sergiyr, zhenya97
Turkish;AhmedDuran, androtuna, brsata, Erdy, keunes, overbite, Slsdem
Ukrainian (uk_UA);keunes, older, paul_sm, sergiyr, voinovich_vyacheslav, zhenya97
Vietnamese;abnvolk, keunes, ppanhh

1 Arabic abuzar3.khalid, badarotti, keunes, MustafaAlgurabi, nabilMaghura, rex07, shubbar
2 Asturian (ast_ES) enolp enolp, keunes
3 Basque gaztainalde, keunes, Osoitz, pospolos
4 Breton Belvar, keunes Belvar, Eorn, keunes
5 Bulgarian keunes, ma4ko, solusitor
6 Catalan carles.llacer, dvd1985, exort12, IvanAmarante, javiercoll, keunes, Kintu, lambdani, marcmetallextrem, xc70
7 Chinese (zh_CN) brnme, cyril3, Felix2yu, gaohongyuan, Guaidaodl, Huck0, iconteral, jhxie, jxj2zzz79pfp9bpo, keunes, kyleehee, molisiye, owen8877, RainSlide, RangerNJU, Sak94664, spice2wolf, tupunco, wongsyrone, yangyang, yiqiok Biacke, brnme, cyril3, Felix2yu, gaohongyuan, Guaidaodl, Huck0, iconteral, jhxie, jxj2zzz79pfp9bpo, keunes, kyleehee, molisiye, owen8877, RainSlide, RangerNJU, Sak94664, spice2wolf, tupunco, wongsyrone, yangyang, yiqiok
8 Chinese (zh_TW) bobchao, ijliao, keunes, mapobi, pggdt, ymhuang0808
9 Czech (cs_CZ) anotheranonymoususer, elich, Hanzmeister, md.share, svetlemodry, Thomaash
10 Danish JFreak, jhertel, keunes, petterbejo, SebastianKiwiDk JFreak, jhertel, keunes, mikini, petterbejo, SebastianKiwiDk
11 Dutch e2jk, keunes, rwv, Vistaus
12 Estonian Eraser, keunes, mahfiaz
13 Finnish Ban3, keunes, Sahtor Ban3, keunes, ktstmu, noppa, Sahtor
14 French ChaoticMind, clombion, Cornegidouille, e2jk, keunes, lacouture, LouFex, Matth78, petterbejo, Poussinou, RomainTT, sterylmreep ayiniho, ChaoticMind, clombion, Cornegidouille, e2jk, keunes, lacouture, LouFex, Matth78, petterbejo, Poussinou, RomainTT, sterylmreep
15 Galician antiparvos, pikamoku, Raichely
16 German _Er, ByteHamster, ceving, dadosch, DerSilly, elkangaroo, enz, f_grubm, finsterwalder, forght, hbilke, HolgerJeromin, JoeMcFly, kalei, keunes, max.wittig, mfietz, Michael_Strecke, petterbejo, pudeeh, Quiss42, repat, toaskoas, tomte, tweimer, Willhelm, ypid _Er, axre, ByteHamster, ceving, dadosch, DerSilly, elkangaroo, enz, f_grubm, finsterwalder, forght, hbilke, HolgerJeromin, JoeMcFly, JoniArida, kalei, keunes, max.wittig, mfietz, Michael_Strecke, petterbejo, pudeeh, Quiss42, repat, timo.rohwedder, toaskoas, tomte, tweimer, Willhelm, ypid
Modern Greek (1453-) AnimaRain, antonist, keunes, pavlosv
17 Hebrew (he_IL) amir.dafnyman, E1i9, mongoose4004, pinkasey, rellieberman, Yaron
18 Hindi (hi_IN) keunes, purple.coder, siddhusengar, thelazyoxymoron
19 Hu hurrikan, keunes, lna91, marthynw, meskobalazs, naren93
20 Icelandic keunes, marthjod
21 Indonesian dbrw, keunes, levirs565
22 Italian (it_IT) aalex70, allin, alvami, Bonnee, dontknowcris, giuseppep, Guybrush88, ilmanzo, keunes, m.chinni, marco_pag, neonsoftware, niccord, salorock, theloca95
23 Japanese keunes, KotaKato, Naofumi, sh3llc4t, TranslatorG ayiniho, keunes, KotaKato, Naofumi, sh3llc4t, TranslatorG
24 Kannada (kn_IN) chiraag.nataraj, keunes, thejeshgn
25 Ko changwoo, keunes, libliboom
26 Lithuanian keunes, naglis, Sharper
27 Macedonian krisfremen
28 Malayalam joice, keunes, rashivkp
29 Norwegian Bokmål (nb_NO) Modern Greek (1453-) abstrakct, ahysing, bablecopherye, corkie, forteller, heraldo, jakobkg, keunes, kongk, sevenmaster, timbast AnimaRain, antonist, keunes, pavlosv
30 Norwegian Bokmål (nb_NO) abstrakct, ahysing, bablecopherye, corkie, forteller, heraldo, jakobkg, keunes, kongk, sevenmaster, tc5, timbast
31 Persian ahangarha, danialbehzadi, ebadi, ebraminio, F7D, hamidrezabayat76, keunes, sinamoghaddas
32 Polish (pl_PL) befeleme, hiro2020, Iwangelion, kamila.miodek1991, keunes, lomapur, mandlus, maniexx, Mephistofeles, shark103, tyle
33 Portuguese emansije, keunes, smarquespt emansije, keunes, smarquespt, WalkerPt
34 Portuguese (pt_BR) alexupits, alysonborges, andersonvom, aracnus, arua, bandreghetti, caioau, carlo_valente, castrors, edman, keunes, lipefire, mbaltar, olivoto, rogervezaro, RubeensVinicius, SamWilliam
35 Romanian (ro_RO) corneliu.e, fuzzmz, keunes, ralienpp
36 Russian (ru_RU) ashed, btimofeev, Duke_Raven, gammja, homocomputeris, IgorPolyakov, keunes, mercutiy, null, overmind88, Platun0v, PtilopsisLeucotis, s.chebotar, tepxd, un_logic, Vladryyu, whereisthetea
37 Slovak ati3, jose1711, keunes, marulinko, tiborepcek
38 Slovenian (sl_SI) asovic, keunes, panter23, trus2
39 Spanish AleksSyntek, andersonvom, andrespelaezp, Atreyu94, CaeM0R, deandreamatias, dvd1985, elojodepajaro, Fitoschido, frandavid100, hard_ware, javiercoll, keunes, LatinSuD, leogrignafini, rafael.osuna, tres.14159, vfmatzkin, wakutiteo AleksSyntek, andersonvom, andrespelaezp, Atreyu94, CaeM0R, carlos.levy, deandreamatias, dvd1985, elojodepajaro, Fitoschido, frandavid100, hard_ware, javiercoll, keunes, LatinSuD, leogrignafini, meanderingDot, rafael.osuna, tres.14159, vfmatzkin, wakutiteo
40 Swahili (macrolanguage) 1silvester, keunes, kmtra
41 Swedish (sv_SE) bpnilsson, keunes, nilso, TwoD
42 Tatar seber
43 Telugu keunes, veeven
44 Turkish AhmedDuran, brsata, Erdy, keunes, overbite, Slsdem AhmedDuran, androtuna, brsata, Erdy, keunes, overbite, Slsdem
45 Ukrainian (uk_UA) keunes, older, paul_sm, sergiyr, zhenya97 keunes, older, paul_sm, sergiyr, voinovich_vyacheslav, zhenya97
46 Vietnamese abnvolk, keunes, ppanhh

View File

@ -16,8 +16,10 @@ page = 1
hasMore = True
first = True
while hasMore:
json = requests.get('https://api.github.com/repos/AntennaPod/AntennaPod/contributors'
+ '?q=contributions&order=desc&per_page=100&page=' + str(page)).json()
nextPage = ('https://api.github.com/repos/AntennaPod/AntennaPod/contributors'
+ '?q=contributions&order=desc&per_page=100&page=' + str(page))
print("Loading " + nextPage)
json = requests.get(nextPage).json()
for contributor in json:
role = 'Contributor'
if contributor['login'] == 'danieloeh':
@ -38,23 +40,24 @@ csvFile.close()
###### Translators #####
config = configparser.ConfigParser()
config.read(os.path.expanduser("~") + '/.transifexrc')
if 'https://www.transifex.com' in config:
TRANSIFEX_USER = config['https://www.transifex.com']['username']
TRANSIFEX_PW = config['https://www.transifex.com']['password']
if 'https://www.transifex.com' in config and config['https://www.transifex.com']['username'] == 'api':
TRANSIFEX_TOKEN = config['https://www.transifex.com']['password']
else:
TRANSIFEX_USER = ""
TRANSIFEX_PW = ""
TRANSIFEX_TOKEN = ""
csvFile = open("app/src/main/assets/translators.csv", "w")
r = requests.get('http://www.transifex.com/api/2/project/antennapod/languages/',
auth=(TRANSIFEX_USER, TRANSIFEX_PW))
contributorsFile.write('\n\n# Translators\n\n')
contributorsFile.write('| Language | Translators |\n| :-- | :-- |\n')
languages = dict()
for lang in r.json():
langContributers = lang['coordinators'] + lang['reviewers'] + lang['translators']
langContributers = sorted(langContributers, key=str.lower)
langCode = lang['language_code']
nextPage = 'https://rest.api.transifex.com/team_memberships?filter[organization]=o:antennapod'
while nextPage is not None:
print("Loading " + nextPage)
r = requests.get(nextPage,
headers={'Authorization': 'Bearer ' + TRANSIFEX_TOKEN,
'Accept': 'application/vnd.api+json'})
for item in r.json()['data']:
language = item['relationships']['language']['data']['id']
user = item['relationships']['user']['data']['id']
if not language in languages:
langCode = language.replace('l:', '')
try:
langName = pycountry.languages.lookup(langCode).name
except:
@ -62,12 +65,26 @@ for lang in r.json():
langName = pycountry.languages.lookup(
langCode.split('_')[0]).name + ' (' + langCode + ')'
except:
langName = lang['language_code']
langName = code
print('\033[91mLanguage code not found:' + langCode + '\033[0m')
languages[language] = {'name': langName, 'translators': []}
languages[language]['translators'].append(user.replace('u:', ''))
nextPage = r.json()['links']['next']
joinedTranslators = ', '.join(langContributers).replace(';', '')
languages = list(languages.values())
languages.sort(key=lambda x : x['name'].lower())
csvFile = open("app/src/main/assets/translators.csv", "w")
contributorsFile.write('\n\n# Translators\n\n')
contributorsFile.write('| Language | Translators |\n| :-- | :-- |\n')
for language in languages:
translators = sorted(language['translators'], key=str.lower)
langName = language['name']
joinedTranslators = ', '.join(translators).replace(';', '')
contributorsFile.write('| ' + langName + ' | ' + joinedTranslators + ' |\n')
csvFile.write(langName + ';' + joinedTranslators + '\n')
csvFile.close()
contributorsFile.close()
print('Done')