Changeset 10794


Ignore:
Timestamp:
Jun 18, 2010, 3:21:29 AM (12 years ago)
Author:
livings124
Message:

--warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoActivityViewController.m

    r10711 r10794  
    125125        [fStateField setStringValue: [torrent stateString]];
    126126       
    127         #warning simplify
     127        NSString * progressString = [NSString localizedStringWithFormat: @"%.2f%%", tr_truncd(100.0 * [torrent progress], 2)];
    128128        if ([torrent isFolder])
    129             [fProgressField setStringValue: [NSString localizedStringWithFormat: NSLocalizedString(@"%.2f%% (%.2f%% selected)",
    130                 "Inspector -> Activity tab -> progress"), tr_truncd(100.0 * [torrent progress], 2),
    131                 tr_truncd(100.0 * [torrent progressDone], 2)]];
    132         else
    133             [fProgressField setStringValue: [NSString localizedStringWithFormat: @"%.2f%%", tr_truncd(100.0 * [torrent progress], 2)]];
     129        {
     130            NSString * progressSelectedString = [NSString localizedStringWithFormat:
     131                                                    NSLocalizedString(@"%.2f%% selected", "Inspector -> Activity tab -> progress"),
     132                                                    tr_truncd(100.0 * [torrent progressDone], 2)];
     133            progressString = [progressString stringByAppendingFormat: @" (%@)", progressSelectedString];
     134        }
     135        [fProgressField setStringValue: progressString];
    134136           
    135137        [fRatioField setStringValue: [NSString stringForRatio: [torrent ratio]]];
Note: See TracChangeset for help on using the changeset viewer.