mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
tweak ngettext() usage based on another helpful suggestion from zebob
This commit is contained in:
parent
971107f767
commit
3671723597
2 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue