From 1309befd16079fe5f2fb8042d9b02bb3ef0451a7 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Tue, 25 Apr 2006 20:38:16 +0000 Subject: [PATCH] [nk]Clean "about" dialog --- src/dialogs.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index c9b68cb39..1cc439886 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -524,12 +524,15 @@ class AboutDialog: dlg.set_copyright(s) text = open('../COPYING').read() dlg.set_license(text) - + + #FIXME: do versions strings translatable after .10 + #FIXME: use %s then dlg.set_comments(_('A GTK+ jabber client') + '\nGTK+ Version: ' + \ self.tuple2str(gtk.gtk_version) + '\nPyGTK Version: ' + \ self.tuple2str(gtk.pygtk_version)) dlg.set_website('http://www.gajim.org') + #FIXME: do current devs a translatable string authors = [ 'Current Developers:', 'Yann Le Boulanger ', @@ -570,9 +573,9 @@ class AboutDialog: rep = dlg.run() dlg.destroy() - def tuple2str(self, tuple): + def tuple2str(self, tuple_): str_ = '' - for num in tuple: + for num in tuple_: str_ += str(num) + '.' return str_[0:-1] # remove latest .