Update transifex to APIv3
This commit is contained in:
parent
ec148b0a23
commit
034ba87021
File diff suppressed because one or more lines are too long
|
@ -4,8 +4,8 @@ mfietz;6860662;Maintainer (retired)
|
||||||
TomHennen;5216560;Maintainer (retired)
|
TomHennen;5216560;Maintainer (retired)
|
||||||
orionlee;250644;Contributor
|
orionlee;250644;Contributor
|
||||||
domingos86;9538859;Contributor
|
domingos86;9538859;Contributor
|
||||||
damoasda;46045854;Contributor
|
|
||||||
tonytamsf;149837;Contributor
|
tonytamsf;149837;Contributor
|
||||||
|
damoasda;46045854;Contributor
|
||||||
andersonvom;69922;Contributor
|
andersonvom;69922;Contributor
|
||||||
TacoTheDank;32376686;Contributor
|
TacoTheDank;32376686;Contributor
|
||||||
shortspider;5712543;Contributor
|
shortspider;5712543;Contributor
|
||||||
|
@ -47,6 +47,7 @@ saqura;1935380;Contributor
|
||||||
binarytoto;75904760;Contributor
|
binarytoto;75904760;Contributor
|
||||||
bibz;5141956;Contributor
|
bibz;5141956;Contributor
|
||||||
hzulla;1705654;Contributor
|
hzulla;1705654;Contributor
|
||||||
|
jonasburian;15125616;Contributor
|
||||||
deandreamatias;21011641;Contributor
|
deandreamatias;21011641;Contributor
|
||||||
MeirAtIMDDE;4421079;Contributor
|
MeirAtIMDDE;4421079;Contributor
|
||||||
egsavage;126165;Contributor
|
egsavage;126165;Contributor
|
||||||
|
@ -59,6 +60,7 @@ rezanejati;16049370;Contributor
|
||||||
twiceyuan;2619800;Contributor
|
twiceyuan;2619800;Contributor
|
||||||
JessieVela;33134794;Contributor
|
JessieVela;33134794;Contributor
|
||||||
HaBaLeS;730902;Contributor
|
HaBaLeS;730902;Contributor
|
||||||
|
peakvalleytech;65185819;Contributor
|
||||||
volhol;11587858;Contributor
|
volhol;11587858;Contributor
|
||||||
michaelmwhite;28901334;Contributor
|
michaelmwhite;28901334;Contributor
|
||||||
CameronBanga;611354;Contributor
|
CameronBanga;611354;Contributor
|
||||||
|
@ -66,7 +68,6 @@ HrBDev;25826502;Contributor
|
||||||
HolgerJeromin;2410353;Contributor
|
HolgerJeromin;2410353;Contributor
|
||||||
xisberto;1914956;Contributor
|
xisberto;1914956;Contributor
|
||||||
jmue;898577;Contributor
|
jmue;898577;Contributor
|
||||||
jonasburian;15125616;Contributor
|
|
||||||
katrinleinweber;9948149;Contributor
|
katrinleinweber;9948149;Contributor
|
||||||
LatinSuD;451487;Contributor
|
LatinSuD;451487;Contributor
|
||||||
24hours;650407;Contributor
|
24hours;650407;Contributor
|
||||||
|
@ -92,14 +93,17 @@ mamehacker;16738348;Contributor
|
||||||
skitt;2128935;Contributor
|
skitt;2128935;Contributor
|
||||||
Thom-Merrilin;76849828;Contributor
|
Thom-Merrilin;76849828;Contributor
|
||||||
wseemann;2296196;Contributor
|
wseemann;2296196;Contributor
|
||||||
|
datavizard;44409076;Contributor
|
||||||
markamaze;17114678;Contributor
|
markamaze;17114678;Contributor
|
||||||
mohitshah3111999;42018918;Contributor
|
mohitshah3111999;42018918;Contributor
|
||||||
moralesg;14352147;Contributor
|
moralesg;14352147;Contributor
|
||||||
mr-intj;6268767;Contributor
|
mr-intj;6268767;Contributor
|
||||||
|
tamizh143;50977879;Contributor
|
||||||
tuxayo;2678215;Contributor
|
tuxayo;2678215;Contributor
|
||||||
alimemonzx;44647595;Contributor
|
alimemonzx;44647595;Contributor
|
||||||
dev-darrell;52300159;Contributor
|
dev-darrell;52300159;Contributor
|
||||||
jmdouglas;10855634;Contributor
|
jmdouglas;10855634;Contributor
|
||||||
|
jhenninger;197274;Contributor
|
||||||
olivoto;15932680;Contributor
|
olivoto;15932680;Contributor
|
||||||
PtilopsisLeucotis;54054883;Contributor
|
PtilopsisLeucotis;54054883;Contributor
|
||||||
abhinavg1997;60095795;Contributor
|
abhinavg1997;60095795;Contributor
|
||||||
|
@ -123,6 +127,7 @@ Geist5000;37940313;Contributor
|
||||||
jklippel;8657220;Contributor
|
jklippel;8657220;Contributor
|
||||||
jannic;232606;Contributor
|
jannic;232606;Contributor
|
||||||
Foso;5015532;Contributor
|
Foso;5015532;Contributor
|
||||||
|
CreamyCookie;3063858;Contributor
|
||||||
Kaligule;3586246;Contributor
|
Kaligule;3586246;Contributor
|
||||||
kvithayathil;1056073;Contributor
|
kvithayathil;1056073;Contributor
|
||||||
luiscruz;1080714;Contributor
|
luiscruz;1080714;Contributor
|
||||||
|
@ -169,4 +174,5 @@ lightonflux;1377943;Contributor
|
||||||
minusf;3632883;Contributor
|
minusf;3632883;Contributor
|
||||||
s3lph;5564491;Contributor
|
s3lph;5564491;Contributor
|
||||||
tamizh138;26201258;Contributor
|
tamizh138;26201258;Contributor
|
||||||
|
trevortabaka;1552990;Contributor
|
||||||
zawad2221;32180355;Contributor
|
zawad2221;32180355;Contributor
|
||||||
|
|
|
|
@ -1,45 +1,46 @@
|
||||||
Arabic;abuzar3.khalid, badarotti, keunes, MustafaAlgurabi, nabilMaghura, rex07, shubbar
|
Arabic;abuzar3.khalid, badarotti, keunes, MustafaAlgurabi, nabilMaghura, rex07, shubbar
|
||||||
Asturian (ast_ES);enolp
|
Asturian (ast_ES);enolp, keunes
|
||||||
Basque;gaztainalde, keunes, Osoitz, pospolos
|
Basque;gaztainalde, keunes, Osoitz, pospolos
|
||||||
Breton;Belvar, keunes
|
Breton;Belvar, Eorn, keunes
|
||||||
Bulgarian;keunes, ma4ko, solusitor
|
Bulgarian;keunes, ma4ko, solusitor
|
||||||
Catalan;carles.llacer, dvd1985, exort12, IvanAmarante, javiercoll, keunes, Kintu, lambdani, marcmetallextrem, xc70
|
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
|
Chinese (zh_TW);bobchao, ijliao, keunes, mapobi, pggdt, ymhuang0808
|
||||||
Czech (cs_CZ);anotheranonymoususer, elich, Hanzmeister, md.share, svetlemodry, Thomaash
|
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
|
Dutch;e2jk, keunes, rwv, Vistaus
|
||||||
Estonian;Eraser, keunes, mahfiaz
|
Estonian;Eraser, keunes, mahfiaz
|
||||||
Finnish;Ban3, keunes, Sahtor
|
Finnish;Ban3, keunes, ktstmu, noppa, Sahtor
|
||||||
French;ChaoticMind, clombion, Cornegidouille, e2jk, keunes, lacouture, LouFex, Matth78, petterbejo, Poussinou, RomainTT, sterylmreep
|
French;ayiniho, ChaoticMind, clombion, Cornegidouille, e2jk, keunes, lacouture, LouFex, Matth78, petterbejo, Poussinou, RomainTT, sterylmreep
|
||||||
Galician;antiparvos, pikamoku, Raichely
|
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
|
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
|
||||||
Modern Greek (1453-);AnimaRain, antonist, keunes, pavlosv
|
|
||||||
Hebrew (he_IL);amir.dafnyman, E1i9, mongoose4004, pinkasey, rellieberman, Yaron
|
Hebrew (he_IL);amir.dafnyman, E1i9, mongoose4004, pinkasey, rellieberman, Yaron
|
||||||
Hindi (hi_IN);keunes, purple.coder, siddhusengar, thelazyoxymoron
|
Hindi (hi_IN);keunes, purple.coder, siddhusengar, thelazyoxymoron
|
||||||
Hu;hurrikan, keunes, lna91, marthynw, meskobalazs, naren93
|
Hu;hurrikan, keunes, lna91, marthynw, meskobalazs, naren93
|
||||||
Icelandic;keunes, marthjod
|
Icelandic;keunes, marthjod
|
||||||
Indonesian;dbrw, keunes, levirs565
|
Indonesian;dbrw, keunes, levirs565
|
||||||
Italian (it_IT);aalex70, allin, alvami, Bonnee, dontknowcris, giuseppep, Guybrush88, ilmanzo, keunes, m.chinni, marco_pag, neonsoftware, niccord, salorock, theloca95
|
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
|
Kannada (kn_IN);chiraag.nataraj, keunes, thejeshgn
|
||||||
Ko;changwoo, keunes, libliboom
|
Ko;changwoo, keunes, libliboom
|
||||||
Lithuanian;keunes, naglis, Sharper
|
Lithuanian;keunes, naglis, Sharper
|
||||||
Macedonian;krisfremen
|
Macedonian;krisfremen
|
||||||
Malayalam;joice, keunes, rashivkp
|
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
|
Persian;ahangarha, danialbehzadi, ebadi, ebraminio, F7D, hamidrezabayat76, keunes, sinamoghaddas
|
||||||
Polish (pl_PL);befeleme, hiro2020, Iwangelion, kamila.miodek1991, keunes, lomapur, mandlus, maniexx, Mephistofeles, shark103, tyle
|
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
|
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
|
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
|
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
|
Slovak;ati3, jose1711, keunes, marulinko, tiborepcek
|
||||||
Slovenian (sl_SI);asovic, keunes, panter23, trus2
|
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
|
Swahili (macrolanguage);1silvester, keunes, kmtra
|
||||||
Swedish (sv_SE);bpnilsson, keunes, nilso, TwoD
|
Swedish (sv_SE);bpnilsson, keunes, nilso, TwoD
|
||||||
|
Tatar;seber
|
||||||
Telugu;keunes, veeven
|
Telugu;keunes, veeven
|
||||||
Turkish;AhmedDuran, brsata, Erdy, keunes, overbite, Slsdem
|
Turkish;AhmedDuran, androtuna, brsata, Erdy, keunes, overbite, Slsdem
|
||||||
Ukrainian (uk_UA);keunes, older, paul_sm, sergiyr, zhenya97
|
Ukrainian (uk_UA);keunes, older, paul_sm, sergiyr, voinovich_vyacheslav, zhenya97
|
||||||
Vietnamese;abnvolk, keunes, ppanhh
|
Vietnamese;abnvolk, keunes, ppanhh
|
||||||
|
|
|
|
@ -16,8 +16,10 @@ page = 1
|
||||||
hasMore = True
|
hasMore = True
|
||||||
first = True
|
first = True
|
||||||
while hasMore:
|
while hasMore:
|
||||||
json = requests.get('https://api.github.com/repos/AntennaPod/AntennaPod/contributors'
|
nextPage = ('https://api.github.com/repos/AntennaPod/AntennaPod/contributors'
|
||||||
+ '?q=contributions&order=desc&per_page=100&page=' + str(page)).json()
|
+ '?q=contributions&order=desc&per_page=100&page=' + str(page))
|
||||||
|
print("Loading " + nextPage)
|
||||||
|
json = requests.get(nextPage).json()
|
||||||
for contributor in json:
|
for contributor in json:
|
||||||
role = 'Contributor'
|
role = 'Contributor'
|
||||||
if contributor['login'] == 'danieloeh':
|
if contributor['login'] == 'danieloeh':
|
||||||
|
@ -38,23 +40,24 @@ csvFile.close()
|
||||||
###### Translators #####
|
###### Translators #####
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(os.path.expanduser("~") + '/.transifexrc')
|
config.read(os.path.expanduser("~") + '/.transifexrc')
|
||||||
if 'https://www.transifex.com' in config:
|
if 'https://www.transifex.com' in config and config['https://www.transifex.com']['username'] == 'api':
|
||||||
TRANSIFEX_USER = config['https://www.transifex.com']['username']
|
TRANSIFEX_TOKEN = config['https://www.transifex.com']['password']
|
||||||
TRANSIFEX_PW = config['https://www.transifex.com']['password']
|
|
||||||
else:
|
else:
|
||||||
TRANSIFEX_USER = ""
|
TRANSIFEX_TOKEN = ""
|
||||||
TRANSIFEX_PW = ""
|
|
||||||
|
|
||||||
csvFile = open("app/src/main/assets/translators.csv", "w")
|
languages = dict()
|
||||||
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')
|
|
||||||
|
|
||||||
for lang in r.json():
|
nextPage = 'https://rest.api.transifex.com/team_memberships?filter[organization]=o:antennapod'
|
||||||
langContributers = lang['coordinators'] + lang['reviewers'] + lang['translators']
|
while nextPage is not None:
|
||||||
langContributers = sorted(langContributers, key=str.lower)
|
print("Loading " + nextPage)
|
||||||
langCode = lang['language_code']
|
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:
|
try:
|
||||||
langName = pycountry.languages.lookup(langCode).name
|
langName = pycountry.languages.lookup(langCode).name
|
||||||
except:
|
except:
|
||||||
|
@ -62,12 +65,26 @@ for lang in r.json():
|
||||||
langName = pycountry.languages.lookup(
|
langName = pycountry.languages.lookup(
|
||||||
langCode.split('_')[0]).name + ' (' + langCode + ')'
|
langCode.split('_')[0]).name + ' (' + langCode + ')'
|
||||||
except:
|
except:
|
||||||
langName = lang['language_code']
|
langName = code
|
||||||
print('\033[91mLanguage code not found:' + langCode + '\033[0m')
|
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')
|
contributorsFile.write('| ' + langName + ' | ' + joinedTranslators + ' |\n')
|
||||||
csvFile.write(langName + ';' + joinedTranslators + '\n')
|
csvFile.write(langName + ';' + joinedTranslators + '\n')
|
||||||
csvFile.close()
|
csvFile.close()
|
||||||
|
|
||||||
contributorsFile.close()
|
contributorsFile.close()
|
||||||
|
|
||||||
|
print('Done')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue