mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
CI: add the crowdin-contributors.py to 1.8.x branch
This commit is contained in:
25
.ci/crowdin-contributors.py
Executable file
25
.ci/crowdin-contributors.py
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
array = []
|
||||
|
||||
data = json.load(sys.stdin)
|
||||
for user in data['data']:
|
||||
user = user['data']
|
||||
if user['fullName']:
|
||||
array.append('* {} ({})'.format(user['username'], user['fullName']))
|
||||
else:
|
||||
array.append('* ' + user['username'])
|
||||
|
||||
array.sort(key=lambda x: x.lower())
|
||||
|
||||
sys.stdout = open('TRANSLATORS.md', 'wt')
|
||||
|
||||
print('These people helped translating ZNC to various languages:')
|
||||
print()
|
||||
for u in array:
|
||||
print(u)
|
||||
print()
|
||||
print('Generated from https://crowdin.com/project/znc-bouncer')
|
||||
Reference in New Issue
Block a user