]> git.mxchange.org Git - friendica.git/blobdiff - bin/dev/make_credits.py
Remove references to removed frost theme
[friendica.git] / bin / dev / make_credits.py
index e373fa8caac14364362f16a188395b9b79c82c71..be7a52e3221c4275fb2eb3a1513e9d8b4dca0102 100755 (executable)
@@ -23,7 +23,9 @@ import os, glob, subprocess
 #  not work in some cases.
 dontinclude = ['root', 'friendica', 'bavatar', 'tony baldwin', 'Taek', 'silke m',
                'leberwurscht', 'abinoam', 'fabrixxm', 'FULL NAME', 'Hauke Zuehl',
-               'Michal Supler', 'michal_s', 'Manuel Pérez', 'rabuzarus', 'Alberto Díaz']
+               'Michal Supler', 'michal_s', 'Manuel Pérez', 'rabuzarus',
+               'Alberto Díaz', 'hoergen oostende', 'Friendica', 'vinzv',
+               'Vincent Vindarel']
 
 
 #  this script is in the /bin/dev directory of the friendica installation
@@ -32,7 +34,7 @@ dontinclude = ['root', 'friendica', 'bavatar', 'tony baldwin', 'Taek', 'silke m'
 path = os.path.abspath(argv[0].split('bin/dev/make_credits.py')[0])
 print('> base directory is assumed to be: '+path)
 #  a place to store contributors
-contributors = ["Andi Stadler", "Ratten", "Vít Šesták 'v6ak'"]
+contributors = ["Andi Stadler", "Ratten", "Roger Meyer", "Vít Šesták 'v6ak'"]
 #  get the contributors
 print('> getting contributors to the friendica core repository')
 p = subprocess.Popen(['git', 'shortlog', '--no-merges', '-s'],
@@ -88,10 +90,14 @@ for f in glob.glob(path+'/addon/*/lang/*/messages.po'):
     for ll in l:
         if intrans and ll.strip()=='':
             intrans = False;
-        if intrans and ll[0]=='#':
-            name = ll.split('# ')[1].split(',')[0].split(' <')[0]
-            if not name in contributors and name not in dontinclude:
-                contributors.append(name)
+        # at this point Transifex sometimes includes a "#, fuzzy" we eill
+        # ignore all lines starting with "#," as they do not contains any
+        # "Name email, year" information.
+        if not "#," in ll:
+            if intrans and ll[0]=='#':
+                name = ll.split('# ')[1].split(',')[0].split(' <')[0]
+                if not name in contributors and name not in dontinclude:
+                    contributors.append(name)
         if "# Translators:" in ll:
             intrans = True
 #  done with the translators