From 36717235973cb431a8b91751dda8553187a76c67 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 27 Dec 2007 19:18:32 +0000 Subject: [PATCH] tweak ngettext() usage based on another helpful suggestion from zebob --- gtk/torrent-cell-renderer.c | 10 +++++----- gtk/tr_window.c | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gtk/torrent-cell-renderer.c b/gtk/torrent-cell-renderer.c index 994bd7d27..54b4f62c9 100644 --- a/gtk/torrent-cell-renderer.c +++ b/gtk/torrent-cell-renderer.c @@ -185,8 +185,8 @@ getStatusString( const tr_stat * torStat ) case TR_STATUS_DOWNLOAD: g_string_append_printf( gstr, - ngettext( _("Downloading from %d of %d connected peer" ), - _("Downloading from %d of %d connected peers" ), + ngettext( "Downloading from %d of %d connected peer", + "Downloading from %d of %d connected peers", torStat->peersConnected ), torStat->peersSendingToUs, torStat->peersConnected ); @@ -195,9 +195,9 @@ getStatusString( const tr_stat * torStat ) case TR_STATUS_DONE: case TR_STATUS_SEED: g_string_append_printf( gstr, - ngettext( _( "Seeding to %d of %d connected peer" ), - _( "Seeding to %d of %d connected peers" ), - torStat->peersGettingFromUs ), + ngettext( "Seeding to %d of %d connected peer", + "Seeding to %d of %d connected peers", + torStat->peersConnected ), torStat->peersGettingFromUs, torStat->peersConnected ); break; diff --git a/gtk/tr_window.c b/gtk/tr_window.c index d21c24347..c2a1728e4 100644 --- a/gtk/tr_window.c +++ b/gtk/tr_window.c @@ -602,13 +602,13 @@ updateTorrentCount( PrivateData * p ) const int visibleCount = gtk_tree_model_iter_n_children( p->filter_model, NULL ); if( torrentCount != visibleCount ) - g_snprintf( buf, sizeof( buf ), ngettext( _( "%d of %d Transfer" ), - _( "%d of %d Transfers" ), + g_snprintf( buf, sizeof( buf ), ngettext( "%d of %d Transfer", + "%d of %d Transfers", torrentCount ), visibleCount, torrentCount ); else - g_snprintf( buf, sizeof( buf ), ngettext( _( "%d Transfer" ), - _( "%d Transfers" ), + g_snprintf( buf, sizeof( buf ), ngettext( "%d Transfer", + "%d Transfers", torrentCount ), torrentCount ); gtk_label_set_text( GTK_LABEL( p->gutter_lb ), buf );