# -*- coding: UTF-8 -*- __revision__ = '$Id: about.py 855 2007-09-02 21:46:05Z piotrek $' # Copyright (c) 2005-2007 Vasco Nunes, Piotr Ożarowski # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License # along with this program; if not, write to the Free Software # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # You may use and distribute this software under the terms of the # GNU General Public License, version 2 or later from gettext import gettext as _ import gtk import version import os import sys class AboutDialog: """Shows a gtk about dialog""" def __init__(self, images_dir): dialog = gtk.AboutDialog() dialog.set_name(version.pname) dialog.set_version(version.pversion) dialog.set_copyright("Copyright © 2005-2007 Vasco Nunes. Piotr Ożarowski") dialog.set_website(version.pwebsite) dialog.set_authors([ _("Main Authors") + ':', version.pauthor.replace(', ', '\n') + "\n", _("Programmers") + ':', 'Jessica Katharina Parth ', 'Michael Jahn \n', _('Contributors:'), # FIXME: remove ":" 'Christian Sagmueller \n' \ 'Arjen Schwarz ' ]) dialog.set_artists([_("Logo, icon and general artwork " + \ "by Peek ." + \ "\nPlease visit http://www.peekmambo.com/\n"), 'seen / unseen icons by dragonskulle ' ]) dialog.set_translator_credits(\ _("Brasilian Portuguese") + ":\n\t" + \ "Fábio Nogueira \n\t" + \ "Alan A. Dantas \n\t" + \ "Augusta Carla Klug \n\t" + \ "alexandrers \n" + \ _("Bulgarian") + ":\n\t" + \ "Luchezar P. Petkov \n" + \ _("Catalan") + ":\n\t" + \ "el_libre \n" + \ _("Czech") + ":\n\t" + \ "Blondak ,\n\t" + \ "Ondra 'Kepi' Kudlík \n\t" + \ "Kamil Páral \n" + \ _("Danish") + ":\n\t" + \ "Joe Dalton \n" + \ _("Dutch") + ":\n\t" + \ "Marcel Dijkstra \n\t" + \ "Tominator \n\t" + \ "warddr \n" + \ _("French") + ":\n\t" + \ "Guillaume Pratte \n\t" + \ "Pierre-Luc Lévy \n\t" + \ "antou \n\t" + \ "Rémi Preghenella \n\t" + \ "sd2310 \n" + \ _("German") + ":\n\t" + \ "Jessica Katharina Parth ,\n\t" + \ "Sebastian Wallroth \n\t" + \ "Christian Sagmueller ,\n\t" + \ "Malte Wiemann \n" + \ _("Greek") + ":\n\t" + \ "Ioannis Koniaris \n\t" + \ "Athanasia Tziola \n\t" + \ "linuxangel \n" + \ _("Italian") + ":\n\t" + \ "Diego Porcelli \n\t" + \ "Simone Vendemia \n" + \ _("Japanese") + ":\n\t" + \ "Jack Nihil \n" + \ _("Norwegian Bokmal") + ":\n\t" + \ "Anders Oftedal \n" + \ _("Polish") + ":\n\t" + \ "Piotr Ozarowski \n" + \ _("Portuguese") + ":\n\t" + \ "Vasco Nunes \n" + \ _("Russian") + ":\n\t" + \ "Pavel V. Kulikov \n\t" + \ "Nkolay Parukhin \n" + \ _("Simplified Chinese") + ":\n\t" + \ "kempson \n" + \ _("Spanish") + ":\n\t" + \ "Daniel Ucero \n" + \ _("Swedish") + ":\n\t" + \ "Daniel Nylander \n" + \ _("Turkish") + ":\n\t" + \ "transorlate \n" \ ) logo_file = os.path.abspath(os.path.join(images_dir, 'griffith.png')) logo = gtk.gdk.pixbuf_new_from_file(logo_file) dialog.set_logo(logo) if os.path.isfile('/usr/share/common-licenses/GPL-2'): dialog.set_license(open('/usr/share/common-licenses/GPL-2').read()) else: dialog.set_license(_("This program is released under the GNU" + \ "General Public License.\n" + \ "Please visit http://www.gnu.org/copyleft/gpl.html for details.")) dialog.set_comments(version.pdescription) dialog.run() dialog.destroy()