1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

tweak ngettext() usage based on another helpful suggestion from zebob

This commit is contained in:
Charles Kerr 2007-12-27 19:18:32 +00:00
parent 971107f767
commit 3671723597
2 changed files with 9 additions and 9 deletions

View file

@ -185,8 +185,8 @@ getStatusString( const tr_stat * torStat )
case TR_STATUS_DOWNLOAD: case TR_STATUS_DOWNLOAD:
g_string_append_printf( gstr, g_string_append_printf( gstr,
ngettext( _("Downloading from %d of %d connected peer" ), ngettext( "Downloading from %d of %d connected peer",
_("Downloading from %d of %d connected peers" ), "Downloading from %d of %d connected peers",
torStat->peersConnected ), torStat->peersConnected ),
torStat->peersSendingToUs, torStat->peersSendingToUs,
torStat->peersConnected ); torStat->peersConnected );
@ -195,9 +195,9 @@ getStatusString( const tr_stat * torStat )
case TR_STATUS_DONE: case TR_STATUS_DONE:
case TR_STATUS_SEED: case TR_STATUS_SEED:
g_string_append_printf( gstr, g_string_append_printf( gstr,
ngettext( _( "Seeding to %d of %d connected peer" ), ngettext( "Seeding to %d of %d connected peer",
_( "Seeding to %d of %d connected peers" ), "Seeding to %d of %d connected peers",
torStat->peersGettingFromUs ), torStat->peersConnected ),
torStat->peersGettingFromUs, torStat->peersGettingFromUs,
torStat->peersConnected ); torStat->peersConnected );
break; break;

View file

@ -602,13 +602,13 @@ updateTorrentCount( PrivateData * p )
const int visibleCount = gtk_tree_model_iter_n_children( p->filter_model, NULL ); const int visibleCount = gtk_tree_model_iter_n_children( p->filter_model, NULL );
if( torrentCount != visibleCount ) if( torrentCount != visibleCount )
g_snprintf( buf, sizeof( buf ), ngettext( _( "%d of %d Transfer" ), g_snprintf( buf, sizeof( buf ), ngettext( "%d of %d Transfer",
_( "%d of %d Transfers" ), "%d of %d Transfers",
torrentCount ), torrentCount ),
visibleCount, torrentCount ); visibleCount, torrentCount );
else else
g_snprintf( buf, sizeof( buf ), ngettext( _( "%d Transfer" ), g_snprintf( buf, sizeof( buf ), ngettext( "%d Transfer",
_( "%d Transfers" ), "%d Transfers",
torrentCount ), torrentCount ),
torrentCount ); torrentCount );
gtk_label_set_text( GTK_LABEL( p->gutter_lb ), buf ); gtk_label_set_text( GTK_LABEL( p->gutter_lb ), buf );