From cd080b1a6b17727633cb42bd18d39eb3f7a9e030 Mon Sep 17 00:00:00 2001
From: Chocobozzz <me@florianbigard.com>
Date: Fri, 22 Jun 2018 16:20:44 +0200
Subject: [PATCH] Update credits

---
 CREDITS.md                            | 33 ++++++++++++++++++---------
 scripts/generate-code-contributors.sh | 20 ++++++++++++++++
 2 files changed, 42 insertions(+), 11 deletions(-)

diff --git a/CREDITS.md b/CREDITS.md
index 5f89ee8a24..f8006fc17a 100644
--- a/CREDITS.md
+++ b/CREDITS.md
@@ -1,35 +1,46 @@
 # Code
 
  * [Chocobozzz](https://github.com/Chocobozzz)
- * [gegeweb](https://github.com/gegeweb)
  * [rigelk](https://github.com/rigelk)
+ * [gegeweb](https://github.com/gegeweb)
  * [bnjbvr](https://github.com/bnjbvr)
+ * [jankeromnes](https://github.com/jankeromnes)
  * [DimitriGilbert](https://github.com/DimitriGilbert)
+ * [floSoX](https://github.com/floSoX)
  * [Green-Star](https://github.com/Green-Star)
- * [jankeromnes](https://github.com/jankeromnes)
- * [Angristan](https://github.com/Angristan)
+ * [DavidLibeau](https://github.com/DavidLibeau)
+ * [JohnXLivingston](https://github.com/JohnXLivingston)
  * [okhin](https://github.com/okhin)
- * [svnet-libre](https://github.com/svnet-libre)
+ * [fflorent](https://github.com/fflorent)
+ * [ldidry](https://github.com/ldidry)
+ * [kaiyou](https://github.com/kaiyou)
  * [dedesite](https://github.com/dedesite)
- * [floSoX](https://github.com/floSoX)
+ * [daftaupe](https://github.com/daftaupe)
  * [dadall](https://github.com/dadall)
  * [jonathanraes](https://github.com/jonathanraes)
- * [ldidry](https://github.com/ldidry)
- * [DavidLibeau](https://github.com/DavidLibeau)
+ * [rhaamo](https://github.com/rhaamo)
  * [mrflos](https://github.com/mrflos)
+ * [jocelynj](https://github.com/jocelynj)
  * [LecygneNoir](https://github.com/LecygneNoir)
  * [lucaspontoexe](https://github.com/lucaspontoexe)
  * [flyingrub](https://github.com/flyingrub)
  * [tcitworld](https://github.com/tcitworld)
  * [valvin1](https://github.com/valvin1)
- * [kaiyou](https://github.com/kaiyou)
  * [taziden](https://github.com/taziden)
  * [sticmac](https://github.com/sticmac)
  * [luzpaz](https://github.com/luzpaz)
  * [qsypoq](https://github.com/qsypoq)
- * [noplanman](https://github.com/noplanman)
- * [Nautigsam](https://github.com/Nautigsam)
- * [ewft](https://github.com/ewft)
+
+
+# Translations
+
+ * [chocobozzz](https://trad.framasoft.org/zanata/profile/view/chocobozzz)
+ * [claichou](https://trad.framasoft.org/zanata/profile/view/claichou)
+ * [goofy](https://trad.framasoft.org/zanata/profile/view/goofy)
+ * [m4sk1n](https://trad.framasoft.org/zanata/profile/view/m4sk1n)
+ * [midgard](https://trad.framasoft.org/zanata/profile/view/midgard)
+ * [rigelk](https://trad.framasoft.org/zanata/profile/view/rigelk)
+
 
 # Design
 
diff --git a/scripts/generate-code-contributors.sh b/scripts/generate-code-contributors.sh
index 2201377aec..46bf86234d 100755
--- a/scripts/generate-code-contributors.sh
+++ b/scripts/generate-code-contributors.sh
@@ -2,6 +2,26 @@
 
 set -eu
 
+echo -e "# Code\n"
+
 curl -s https://api.github.com/repos/chocobozzz/peertube/contributors | \
   jq -r 'map(" * [" + .login + "](" + .url + ")") | .[]' | \
   sed 's/api.github.com\/users/github.com/g'
+
+###################################################
+
+echo -e "\n\n# Translations\n"
+
+curl -s \
+    -H "Accept: application/json" \
+    -H "X-Auth-User: $(grep trad.framasoft.org.username ~/.config/zanata.ini | sed 's@.*=@@')" \
+    -H "X-Auth-Token: $(grep trad.framasoft.org.key ~/.config/zanata.ini | sed 's@.*=@@')" \
+    "https://trad.framasoft.org/zanata/rest/project/peertube/version/develop/contributors/2018-01-01..$(date +%Y-%m-%d)" \
+    | jq -r 'map(" * [" + .username + "](https://trad.framasoft.org/zanata/profile/view/" + .username + ")") | .[]'
+
+###################################################
+
+echo -e "\n\n# Design\n"
+
+echo -e "By [Olivier Massain](https://twitter.com/omassain)\n"
+echo -e "Icons from [Robbie Pearce](https://robbiepearce.com/softies/)"
\ No newline at end of file
-- 
GitLab