From a83fd1d597e4f34ee7436c87bd10cb3261b1a896 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 2 Jan 2012 18:55:32 +0000 Subject: [PATCH] Update About dialog for translation --- deluge/ui/gtkui/aboutdialog.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/deluge/ui/gtkui/aboutdialog.py b/deluge/ui/gtkui/aboutdialog.py index ead36ba78..c88c64197 100644 --- a/deluge/ui/gtkui/aboutdialog.py +++ b/deluge/ui/gtkui/aboutdialog.py @@ -50,20 +50,19 @@ class AboutDialog: self.about = gtk.AboutDialog() self.about.set_position(gtk.WIN_POS_CENTER) self.about.set_name("Deluge") - self.about.set_program_name("Deluge") + self.about.set_program_name(_("Deluge")) version = deluge.common.get_version() - self.about.set_copyright(u'Copyright \u00A9 2007-2011 Deluge Team') + self.about.set_copyright(_('Copyright 2007-2011 Deluge Team')) self.about.set_comments( - "A peer-to-peer file sharing program\nutilizing the BitTorrent " - "protocol\n\n" - "Client Version: %s\n" % version) + _("A peer-to-peer file sharing program\nutilizing the BitTorrent protocol.") + + "\n\n" + _("Client:") + " %s\n" % version) self.about.set_version(version) self.about.set_authors([ - "Current Developers:", "Andrew Resch", "Damien Churchill", - "John Garland", "Calum Lind", "", "libtorrent (www.libtorrent.org):", - "Arvid Norberg", "", "Past Developers or Contributors:", + _("Current Developers:"), "Andrew Resch", "Damien Churchill", + "John Garland", "Calum Lind", "", "libtorrent (libtorrent.org):", + "Arvid Norberg", "", _("Past Developers or Contributors:"), "Zach Tibbitts", "Alon Zakai", "Marcos Pinto", "Alex Dedul", "Sadrul Habib Chowdhury", "Ido Abramovich", "Martijn Voncken" ]) @@ -273,7 +272,7 @@ class AboutDialog: "source files in the program, then also delete it here." )) self.about.set_website("http://deluge-torrent.org") - self.about.set_website_label("www.deluge-torrent.org") + self.about.set_website_label("deluge-torrent.org") self.about.set_icon(common.get_deluge_icon()) self.about.set_logo(gtk.gdk.pixbuf_new_from_file( @@ -283,10 +282,10 @@ class AboutDialog: if client.connected(): if not client.is_classicmode(): self.about.set_comments( - self.about.get_comments() + "Server Version: %coreversion%\n") + self.about.get_comments() + _("Server:") + " %coreversion%\n") self.about.set_comments( - self.about.get_comments() + "Libtorrent Version: %ltversion%\n") + self.about.get_comments() + "\n" + _("libtorrent:") + " %ltversion%\n") def on_lt_version(result): c = self.about.get_comments()