]> jfr.im git - irc/evilnet/znc.git/commitdiff
CI: add the crowdin-contributors.py to 1.8.x branch
authorAlexey Sokolov <redacted>
Sun, 7 Jun 2020 14:23:56 +0000 (15:23 +0100)
committerAlexey Sokolov <redacted>
Sun, 7 Jun 2020 14:24:13 +0000 (15:24 +0100)
.ci/crowdin-contributors.py [new file with mode: 0755]

diff --git a/.ci/crowdin-contributors.py b/.ci/crowdin-contributors.py
new file mode 100755 (executable)
index 0000000..6cb0d1c
--- /dev/null
@@ -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')