mirror of
https://github.com/transmission/transmission
synced 2025-02-23 06:30:38 +00:00
(gtk) for clarity, use "downloading from X of Y connected peers" instead of "downloading from X of Y peers"
This commit is contained in:
parent
a14742aa5e
commit
b306919f0b
2 changed files with 5 additions and 12 deletions
|
@ -127,8 +127,8 @@ getStatusString( const tr_torrent * tor UNUSED, const tr_stat * torStat )
|
|||
|
||||
case TR_STATUS_DOWNLOAD:
|
||||
g_string_append_printf( gstr,
|
||||
ngettext( _("Downloading from %d of %d peer" ),
|
||||
_("Downloading from %d of %d peers" ),
|
||||
ngettext( _("Downloading from %d of %d connected peer" ),
|
||||
_("Downloading from %d of %d connected peers" ),
|
||||
torStat->peersConnected ),
|
||||
torStat->peersSendingToUs,
|
||||
torStat->peersConnected );
|
||||
|
@ -137,8 +137,8 @@ getStatusString( const tr_torrent * tor UNUSED, const tr_stat * torStat )
|
|||
case TR_STATUS_DONE:
|
||||
case TR_STATUS_SEED:
|
||||
g_string_append_printf( gstr,
|
||||
ngettext( _( "Seeding to %d of %d peer" ),
|
||||
_( "Seeding to %d of %d peers" ),
|
||||
ngettext( _( "Seeding to %d of %d connected peer" ),
|
||||
_( "Seeding to %d of %d connected peers" ),
|
||||
torStat->peersGettingFromUs ),
|
||||
torStat->peersGettingFromUs,
|
||||
torStat->peersConnected );
|
||||
|
|
|
@ -126,17 +126,10 @@ tr_torrent_handle(TrTorrent *tor)
|
|||
return tor->severed ? NULL : tor->handle;
|
||||
}
|
||||
|
||||
static tr_stat*
|
||||
refreshStat( TrTorrent * tor )
|
||||
{
|
||||
}
|
||||
|
||||
const tr_stat *
|
||||
tr_torrent_stat(TrTorrent *tor)
|
||||
{
|
||||
g_assert( TR_IS_TORRENT(tor) );
|
||||
|
||||
return tor->severed ? NULL : tr_torrentStat( tor->handle );
|
||||
return tor && !tor->severed ? tr_torrentStat( tor->handle ) : NULL;
|
||||
}
|
||||
|
||||
const tr_info *
|
||||
|
|
Loading…
Reference in a new issue