[transmageddon] Add patches from ssz Jernaś



commit 763ffa4ff20f953c6a724c562ef66d481ebf97fc
Author: Christian Schaller <christian schaller collabora co uk>
Date:   Fri Sep 18 17:26:11 2009 +0100

    Add patches from ssz JernaÅ?
    - Make about version based on configure version
    - Make i18n credits a translated string

 .gitignore      |    1 +
 configure.ac    |    1 +
 po/POTFILES.in  |    1 +
 src/about.py.in |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2258885..9f7d939 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,7 @@ po/POTFILES
 po/stamp-it
 po/.intltool-merge-cache
 py-compile
+src/about.py
 src/*.pyc
 src/*.*~
 profiles/*.*~
diff --git a/configure.ac b/configure.ac
index cc55911..18a38c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,6 +69,7 @@ Makefile
 bin/Makefile
 common/Makefile
 common/m4/Makefile
+src/about.py
 src/Makefile
 presets/Makefile
 profiles/Makefile
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 45d859e..fcf4291 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,3 +1,4 @@
+src/about.py.in
 src/presets.py
 src/transmageddon.glade
 src/transmageddon.py
diff --git a/src/about.py.in b/src/about.py.in
new file mode 100644
index 0000000..452df83
--- /dev/null
+++ b/src/about.py.in
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+
+import gtk
+from gettext import gettext as _
+
+Authors = ["Christian Schaller <uraeus gnome org>",
+           "Å?ukasz JernaÅ? <deejay1 srem org>",
+           "Nicolò Chieffo <nicolo chieffo gmail com>",
+           "Steven Walter <stevenrwalter gmail com>",
+           "Michal Schmidt <mschmidt redhat com>",
+           "Stephane Maniaci <stephane maniaci gmail com>",
+           "Jordi Mas <jmas softcatala org>",
+           "Stuart Langridge <sil kryogenix org>"
+           ]
+
+Artists = ["Emily and Liam <liam fightingcrane com>"]
+LGPL = """
+Transmageddon
+Copyright (C) 2009 Transmageddon Authors
+ 
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with this library; if not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
+"""
+
+class AboutDialog:
+   def __init__(self):
+       x = gtk.AboutDialog()
+       x.set_version("@VERSION@")
+       x.set_name("Transmageddon")
+       x.set_authors(Authors)
+       x.set_translator_credits(_("translator-credits"))
+       x.set_artists(Artists)
+       x.set_license(LGPL)   
+       x.connect("response", lambda d, r: d.destroy())
+       x.show()
+
+   def close(self,widget):
+        sys.exit(0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]