fix about dialog

This commit is contained in:
Yann Leboulanger 2012-12-31 13:38:08 +01:00
parent 00a856ebbb
commit 841be1bf21
1 changed files with 8 additions and 5 deletions

View File

@ -1275,9 +1275,11 @@ class AboutDialog:
text = open(copying_file_path).read() text = open(copying_file_path).read()
dlg.set_license(text) dlg.set_license(text)
gtk_ver = '%i.%i.%i' % (Gtk.get_major_version(),
Gtk.get_minor_version(), Gtk.get_micro_version())
gobject_ver = self.tuple2str(GObject.pygobject_version)
dlg.set_comments('%s\n%s %s\n%s %s' % (_('A GTK+ Jabber/XMPP client'), dlg.set_comments('%s\n%s %s\n%s %s' % (_('A GTK+ Jabber/XMPP client'),
_('GTK+ Version:'), self.tuple2str(Gtk.gtk_version), \ _('GTK+ Version:'), gtk_ver, _('PyGobject Version:'), gobject_ver))
_('PyGTK Version:'), self.tuple2str(Gtk.pygtk_version)))
dlg.set_website('http://gajim.org/') dlg.set_website('http://gajim.org/')
authors_file_path = self.get_path('AUTHORS') authors_file_path = self.get_path('AUTHORS')
@ -1297,12 +1299,13 @@ class AboutDialog:
if thanks_file_path: if thanks_file_path:
authors.append('\n' + _('THANKS:')) authors.append('\n' + _('THANKS:'))
text = open(thanks_file_path).read() text = helpers.ensure_utf8_string(open(thanks_file_path).read())
text_splitted = text.split('\n') text_splitted = text.split('\n')
text = '\n'.join(text_splitted[:-2]) # remove one english sentence text = '\n'.join(text_splitted[:-2]) # remove one english sentence
# and add it manually as translatable # and add it manually as translatable
text += '\n%s\n' % _('Last but not least, we would like to thank all ' text += helpers.ensure_utf8_string('\n%s\n' % _('Last but not '
'the package maintainers.') 'least, we would like to thank all the package maintainers.'
))
authors.append(text) authors.append(text)
dlg.set_authors(authors) dlg.set_authors(authors)