mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
more string improvements
This commit is contained in:
parent
66b5271479
commit
b9d08e4ec6
1 changed files with 5 additions and 3 deletions
|
@ -1010,9 +1010,11 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
&& (fRatioSetting == NSOnState || (fRatioSetting == NSMixedState && [fDefaults boolForKey: @"RatioCheck"]))))
|
||||
{
|
||||
int eta = fStat->status == TR_STATUS_DOWNLOAD ? [self eta] : [self etaRatio];
|
||||
string = eta >= 0 ? [string stringByAppendingFormat: NSLocalizedString(@" - %@ remaining", "Torrent -> progress string"),
|
||||
[NSString timeString: eta showSeconds: YES maxDigits: 2]]
|
||||
: [string stringByAppendingString: NSLocalizedString(@" - remaining time unknown", "Torrent -> progress string")];
|
||||
NSString * etaString = eta >= 0 ? [NSString stringWithFormat: NSLocalizedString(@"%@ remaining", "Torrent -> progress string"),
|
||||
[NSString timeString: eta showSeconds: YES maxDigits: 2]]
|
||||
: NSLocalizedString(@"remaining time unknown", "Torrent -> progress string");
|
||||
|
||||
string = [NSString stringWithFormat: @"%@ - %@", string, etaString];
|
||||
}
|
||||
|
||||
return string;
|
||||
|
|
Loading…
Reference in a new issue