]> git.lyx.org Git - lyx.git/blobdiff - lib/generate_contributions.py
Fix bug 11346
[lyx.git] / lib / generate_contributions.py
index 4fce7c13b329a2a84772f76f78764ad15df52b79..8f0ffc8dd93c880aef774c551c9b75a81ecfad3b 100755 (executable)
@@ -53,7 +53,7 @@ class contributor:
      def as_txt_credits(self):
           result = [ '@b%s\n' % self.name ]
           if len(self.contact) != 0:
      def as_txt_credits(self):
           result = [ '@b%s\n' % self.name ]
           if len(self.contact) != 0:
-               if self.contact.find("http") != -1:
+               if self.contact.find("https") != -1:
                     result.append('@i%s\n' % self.contact)
                else:
                     result.append('@iE-mail: %s\n' % self.contact)
                     result.append('@i%s\n' % self.contact)
                else:
                     result.append('@iE-mail: %s\n' % self.contact)
@@ -163,7 +163,7 @@ $email = str_replace(' () ', '@', $email);
 $email = str_replace(' ! ', '.', $email);
 
 if (isset($email) && $email != "") {
 $email = str_replace(' ! ', '.', $email);
 
 if (isset($email) && $email != "") {
-        if (strncasecmp($email,"http",4) == 0)
+        if (strncasecmp($email,"https",4) == 0)
             $output =$output. "<dt><b>[[${email} | ${name}]]</b>";
          else
             $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
             $output =$output. "<dt><b>[[${email} | ${name}]]</b>";
          else
             $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
@@ -234,7 +234,7 @@ $output=$output. "
 
 if (isset($msg_ref) && $msg_ref != "") {
         $msg_ref = htmlspecialchars("$msg_ref");
 
 if (isset($msg_ref) && $msg_ref != "") {
         $msg_ref = htmlspecialchars("$msg_ref");
-        $output=$output. "[[http://marc.info/?l=lyx-devel&amp;" . ${msg_ref} . "|" . ${msg_title} . "]]";
+        $output=$output. "[[https://marc.info/?l=lyx-devel&amp;" . ${msg_ref} . "|" . ${msg_title} . "]]";
 } else {
         $output=$output. "${msg_title}";
 }
 } else {
         $output=$output. "${msg_title}";
 }
@@ -251,7 +251,7 @@ function blanket_output() {
 $output=$output."<p>
      The following people hereby grant permission to license their
      contributions to LyX under the
 $output=$output."<p>
      The following people hereby grant permission to license their
      contributions to LyX under the
-     [[http://www.opensource.org/licenses/gpl-license.php |
+     [[https://opensource.org/licenses/gpl-license |
      Gnu General Public License]], version 2 or later.
 </p>
 
      Gnu General Public License]], version 2 or later.
 </p>
 
@@ -269,7 +269,7 @@ $output=$output."
 <p>
      The following people hereby grant permission to license their
      contributions to LyX under the
 <p>
      The following people hereby grant permission to license their
      contributions to LyX under the
-     [[http://www.opensource.org/licenses/artistic-license-2.0.php |
+     [[https://opensource.org/licenses/Artistic-2.0 |
      Artistic License 2]].
 </p>
 
      Artistic License 2]].
 </p>
 
@@ -300,28 +300,28 @@ def main(argv, contributors):
          txt_credits_data = unicode(as_txt_credits(contributors)).encode("utf-8")
      else:
          txt_credits_data = str(as_txt_credits(contributors)).encode("utf-8")
          txt_credits_data = unicode(as_txt_credits(contributors)).encode("utf-8")
      else:
          txt_credits_data = str(as_txt_credits(contributors)).encode("utf-8")
-     txt_credits = open(argv[1], "w")
+     txt_credits = open(argv[1], "wb")
      txt_credits.write(txt_credits_data)
 
      if sys.version_info[0] < 3:
          php_credits_data = unicode(as_php_credits(contributors, argv[2])).encode("utf-8")
      else:
          php_credits_data = str(as_php_credits(contributors, argv[2])).encode("utf-8")
      txt_credits.write(txt_credits_data)
 
      if sys.version_info[0] < 3:
          php_credits_data = unicode(as_php_credits(contributors, argv[2])).encode("utf-8")
      else:
          php_credits_data = str(as_php_credits(contributors, argv[2])).encode("utf-8")
-     php_credits = open(argv[2], "w")
+     php_credits = open(argv[2], "wb")
      php_credits.write(php_credits_data)
 
      if sys.version_info[0] < 3:
          php_blanket_data = unicode(as_php_blanket(contributors, argv[3])).encode("utf-8")
      else:
          php_blanket_data = str(as_php_blanket(contributors, argv[3])).encode("utf-8")
      php_credits.write(php_credits_data)
 
      if sys.version_info[0] < 3:
          php_blanket_data = unicode(as_php_blanket(contributors, argv[3])).encode("utf-8")
      else:
          php_blanket_data = str(as_php_blanket(contributors, argv[3])).encode("utf-8")
-     php_blanket = open(argv[3], "w")
+     php_blanket = open(argv[3], "wb")
      php_blanket.write(php_blanket_data)
 
      if sys.version_info[0] < 3:
          warning_data =  unicode(collate_incomplete(contributors) + '\n').encode("utf-8")
      else:
          warning_data =  str(collate_incomplete(contributors) + '\n').encode("utf-8")
      php_blanket.write(php_blanket_data)
 
      if sys.version_info[0] < 3:
          warning_data =  unicode(collate_incomplete(contributors) + '\n').encode("utf-8")
      else:
          warning_data =  str(collate_incomplete(contributors) + '\n').encode("utf-8")
-     sys.stderr.write(warning_data)
+     sys.stderr.write(warning_data.decode('utf-8'))
 
 
 # Store the raw data.
 
 
 # Store the raw data.
@@ -647,6 +647,14 @@ contributors = [
                  "27 April 2014",
                  u"Chinese (simplified) translations"),
 
                  "27 April 2014",
                  u"Chinese (simplified) translations"),
 
+     contributor(u"Alexander Dunlap",
+                 "alexander.dunlap () gmail ! com",
+                 "GPL",
+                 "licensing statement",
+                 "m=151914230920804",
+                 "20 February 2018",
+                 u"Improvement to recent files support"),
+
      contributor(u"Anders Ekberg",
                  "anek () chalmers ! se",
                  "GPL",
      contributor(u"Anders Ekberg",
                  "anek () chalmers ! se",
                  "GPL",
@@ -799,6 +807,14 @@ contributors = [
                  "25 April 2016",
                  u"Mingw-w64 build fixes"),
 
                  "25 April 2016",
                  u"Mingw-w64 build fixes"),
 
+     contributor(u"D. Gloger",
+                 "2wochenurlaub () gloger ! biz",
+                 "GPL",
+                 "Re: external material template: SVG -> PDF/PS with LaTeX",
+                 "m=151298047124676",
+                 "11 December 2017",
+                 u"Inkscape External Template"),
+
      contributor(u"Hartmut Goebel",
                  "h.goebel () crazy-compilers ! com",
                  "GPL",
      contributor(u"Hartmut Goebel",
                  "h.goebel () crazy-compilers ! com",
                  "GPL",
@@ -855,8 +871,16 @@ contributors = [
                  "9 June 2015",
                  u"Haiku OS support"),
 
                  "9 June 2015",
                  u"Haiku OS support"),
 
-     contributor(u"Richard Heck",
-                 "rgheck () comcast ! net",
+     contributor(u"Jan Niklas Hasse",
+                 "jhasse () bixense ! com",
+                 "GPL",
+                 "Re: Patch to make it possible to open empty files",
+                 "m=148163124122780",
+                 "23 December 2016",
+                 u"File opening enhancement"),
+
+     contributor(u"Richard Kimberly Heck",
+                 "rikiheck () lyx ! org",
                  "GPL",
                  "GPL Statement",
                  "m=117501689204059",
                  "GPL",
                  "GPL Statement",
                  "m=117501689204059",
@@ -911,6 +935,14 @@ contributors = [
                  "6 October 2013",
                  u"Dialog usability fix"),
 
                  "6 October 2013",
                  u"Dialog usability fix"),
 
+     contributor(u"Winfred Huang",
+                 "tone90999 () hotmail ! com",
+                 "GPL",
+                 "License for Chinese translation",
+                 "m=153274007430136",
+                 "28 July 2018",
+                 u"Simplified Chinese Localization"),
+
      contributor(u"John Hudson",
                  "j.r.hudson () virginmedia ! com",
                  "GPL",
      contributor(u"John Hudson",
                  "j.r.hudson () virginmedia ! com",
                  "GPL",
@@ -1008,7 +1040,7 @@ contributors = [
                  u"Original name that is now two characters shorter"),
 
      contributor(u"KDE Artists",
                  u"Original name that is now two characters shorter"),
 
      contributor(u"KDE Artists",
-                 "http://artist.kde.org/",
+                 "",
                  "",
                  "",
                  "",
                  "",
                  "",
                  "",
@@ -1168,7 +1200,7 @@ contributors = [
                  u"Added native support for \makebox to mathed. Several bug fixes, both to the source code and to the llncs layout file"),
 
      contributor(u"LibreOffice Team",
                  u"Added native support for \makebox to mathed. Several bug fixes, both to the source code and to the llncs layout file"),
 
      contributor(u"LibreOffice Team",
-                 "http://www.libreoffice.org/",
+                 "https://www.libreoffice.org/",
                  "LGPL",
                  "",
                  "",
                  "LGPL",
                  "",
                  "",
@@ -1352,7 +1384,7 @@ contributors = [
                  u"Improvements to the outliner."),
 
      contributor(u"Oxygen Team",
                  u"Improvements to the outliner."),
 
      contributor(u"Oxygen Team",
-                 "http://www.oxygen-icons.org/",
+                 "https://techbase.kde.org/Projects/Oxygen",
                  "LGPL",
                  "",
                  "",
                  "LGPL",
                  "",
                  "",
@@ -1503,6 +1535,14 @@ contributors = [
                  "6 April 2005",
                  u"initial configure script"),
 
                  "6 April 2005",
                  u"initial configure script"),
 
+     contributor(u"Zheru Qiu",
+                 "qzr () mail ! ustc ! edu ! cn",
+                 "GPL",
+                 "Fwd: Permission of using my translation under GPL",
+                 "m=148702600212546",
+                 "5 February 2017",
+                 u"Chinese localisation"),
+
      contributor(u"Allan Rae",
                  "rae () itee ! uq ! edu ! au",
                  "GPL",
      contributor(u"Allan Rae",
                  "rae () itee ! uq ! edu ! au",
                  "GPL",
@@ -1759,6 +1799,14 @@ contributors = [
                  "Mar 2 2009",
                  u"Indonesian translation"),
 
                  "Mar 2 2009",
                  u"Indonesian translation"),
 
+     contributor(u"Yuriy Skalko",
+                 "yuriy.skalko () gmail ! com",
+                 "GPL",
+                 "Re: Updated Russian translation",
+                 "m=151306079714476",
+                 "12 December 2017",
+                 u"Russian translation of the user interface"),
+     
      contributor(u"Giovanni Sora",
                  "g.sora () tiscali ! it",
                  "GPL",
      contributor(u"Giovanni Sora",
                  "g.sora () tiscali ! it",
                  "GPL",