From e6538c557052ea6479b01d5ef85aa20a32364747 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 7 Jun 2020 15:23:56 +0100 Subject: [PATCH] CI: add the crowdin-contributors.py to 1.8.x branch --- .ci/crowdin-contributors.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 .ci/crowdin-contributors.py diff --git a/.ci/crowdin-contributors.py b/.ci/crowdin-contributors.py new file mode 100755 index 00000000..6cb0d1ce --- /dev/null +++ b/.ci/crowdin-contributors.py @@ -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')