1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

removed extra 0 on times that weren't working with localization anyway

This commit is contained in:
Mitchell Livingston 2007-05-09 03:11:37 +00:00
parent 5aa4e9a664
commit a4fe974a38

View file

@ -370,10 +370,10 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
if (eta < 60)
[remainingTimeString appendFormat: NSLocalizedString(@"%d sec", "Torrent -> remaining time"), eta];
else if (eta < 3600) //60 * 60
[remainingTimeString appendFormat: NSLocalizedString(@"%d min %02d sec", "Torrent -> remaining time"),
[remainingTimeString appendFormat: NSLocalizedString(@"%d min %d sec", "Torrent -> remaining time"),
eta / 60, eta % 60];
else if (eta < 86400) //24 * 60 * 60
[remainingTimeString appendFormat: NSLocalizedString(@"%d hr %02d min", "Torrent -> remaining time"),
[remainingTimeString appendFormat: NSLocalizedString(@"%d hr %d min", "Torrent -> remaining time"),
eta / 3600, (eta / 60) % 60];
else
{