(gtk) for clarity, use "downloading from X of Y connected peers" instead of "downloading from X of Y peers"

This commit is contained in:
Charles Kerr 2007-12-19 04:20:57 +00:00
parent a14742aa5e
commit b306919f0b
2 changed files with 5 additions and 12 deletions

View File

@ -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 );

View File

@ -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 *