X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fgenerate_contributions.py;h=989dcb34bcb2c81cded9f5be66d2764a444f8279;hb=eb70feb21e37d66437bbd00d10949c18a68814e9;hp=791907489c311759e88c345787ae605f4e815f3d;hpb=15bb8065b90a5fb10c66c709b9e0361ee17c06ca;p=lyx.git diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index 791907489c..989dcb34bc 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -55,10 +55,7 @@ class contributer: if self.contact.find("http") != -1: result.append('@i%s\n' % self.contact) else: - ename, address = self.contact.split(" () ", 1) - address = address.replace(" ! ", ".") - contact = "%s@%s" % (ename, address) - result.append('@iE-mail: %s\n' % contact) + result.append('@iE-mail: %s\n' % self.contact) result.append(' %s\n' % self.credit.replace('\n', '\n ')) return "".join(result) @@ -154,14 +151,13 @@ def as_php_credits(contributers, file): function credits_contrib($name, $email, $msg) { -$output=$output. " - -
- ${name} -"; +$email = str_replace(' () ', '@', $email); +$email = str_replace(' ! ', '.', $email); if (isset($email) && $email != "") - $output=$output. " <${email}>"; + $output=$output. "
[[mailto:${email} | ${name}]]"; +else + $output=$output. "
${name}"; $msg = ereg_replace("\\n *", "\\n ", ltrim($msg)); @@ -180,7 +176,7 @@ $output=$output."

If your name doesn't appear here although you've done something for LyX, or your entry is wrong or incomplete, just drop an e-mail to the - lyx-devel + [[mailto:lyx-devel@lists.lyx.org | lyx-devel]] mailing list. Thanks.

@@ -213,11 +209,13 @@ def as_php_blanket(contributers, file): function blanket_contrib($name, $email, $msg_title, $msg_ref, $date) { +$email = str_replace(' () ', '@', $email); +$email = str_replace(' ! ', '.', $email); + $output=$output. "
- ${name} - <${email}> + [[mailto:${email} | ${name}]]
See the lyx-devel mailing list message @@ -225,7 +223,7 @@ $output=$output. " if (isset($msg_ref) && $msg_ref != "") { $msg_ref = htmlspecialchars("$msg_ref"); - $output=$output. "${msg_title}"; + $output=$output. "[[http://marc.info/?l=lyx-devel&" . ${msg_ref} . "|" . ${msg_title} . "]]"; } else { $output=$output. "${msg_title}"; } @@ -242,8 +240,8 @@ function blanket_output() { $output=$output."

The following people hereby grant permission to license their contributions to LyX under the - - Gnu General Public License, version 2 or later. + [[http://www.opensource.org/licenses/gpl-license.php | + Gnu General Public License]], version 2 or later.

"; @@ -260,8 +258,8 @@ $output=$output."

The following people hereby grant permission to license their contributions to LyX under the - - Artistic License. + [[http://www.opensource.org/licenses/artistic-license.php | + Artistic License]].

"; @@ -538,6 +536,14 @@ contributers = [ "", u"Bug fix to the spellchecker"), + contributer(u"Nicola Focci", + "nicola.focci () gmail ! com", + "GPL", + "Permission", + "m=120946605432341", + "29 April 2008", + u"Italian translation of documentations"), + contributer(u"Enrico Forestieri", "forenr () tlc ! unipr ! it", "GPL", @@ -617,7 +623,7 @@ contributers = [ "m=110916171925288", "23 February 2005", u"Norwegian documentation and localization"), - + contributer(u"Richard Heck", "rgheck () brown ! edu", "GPL", @@ -1450,5 +1456,7 @@ contributers = [ "", u"bug reports and small fixes") ] + if __name__ == "__main__": main(sys.argv, contributers) +