hotssh r20 - trunk/hotssh
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: hotssh r20 - trunk/hotssh
- Date: Tue, 8 Jul 2008 13:21:04 +0000 (UTC)
Author: walters
Date: Tue Jul 8 13:21:04 2008
New Revision: 20
URL: http://svn.gnome.org/viewvc/hotssh?rev=20&view=rev
Log:
Kill off excessive number display in session dialog
Modified:
trunk/hotssh/sshwindow.py
Modified: trunk/hotssh/sshwindow.py
==============================================================================
--- trunk/hotssh/sshwindow.py (original)
+++ trunk/hotssh/sshwindow.py Tue Jul 8 13:21:04 2008
@@ -19,7 +19,7 @@
import os,sys,platform,logging,getopt,re
import locale,threading,subprocess,time
import signal,tempfile,shutil,stat,pwd
-import datetime
+import datetime, gettext
import xml.dom.minidom
@@ -1120,7 +1120,10 @@
button = dlg.add_button(_('_Reconnect'), gtk.RESPONSE_ACCEPT)
button.set_property('image', gtk.image_new_from_stock('gtk-connect', gtk.ICON_SIZE_BUTTON))
dlg.set_default_response(gtk.RESPONSE_ACCEPT)
- dlg.format_secondary_markup(_('Reconnect to %d hosts, %d tabs in %d windows') % (len(allhosts), alltabs_count, len(savedsession)))
+ allhosts_count = len(allhosts)
+ text = gettext.ngettext('Reconnect to %d host' % (allhosts_count,),
+ 'Reconnect to %d hosts' % (allhosts_count,), len(allhosts))
+ dlg.format_secondary_markup(text)
#ls = gtk.ListStore(str)
#gv = gtk.TreeView(ls)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]