Ignore:
Timestamp:
Feb 27, 2008, 7:58:15 PM (14 years ago)
Author:
livings124
Message:

streamline code from last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AddWindowController.m

    r5149 r5150  
    209209    NSString * statusString = [NSString stringForFileSize: [fTorrent size]];
    210210    if ([fTorrent folder])
    211         statusString = [statusString stringByAppendingFormat: NSLocalizedString(@" (%@ selected)", "Add torrent -> info"),
    212                         [NSString stringForFileSize: [fTorrent totalSizeSelected]]];
    213    
    214     if ([fTorrent folder])
    215211    {
    216212        NSString * fileString;
    217213        int count = [fTorrent fileCount];
    218214        if (count != 1)
    219             fileString = [NSString stringWithFormat: NSLocalizedString(@"%d Files, ", "Add torrent -> info"), count];
     215            fileString = [NSString stringWithFormat: NSLocalizedString(@"%d Files", "Add torrent -> info"), count];
    220216        else
    221             fileString = NSLocalizedString(@"1 File, ", "Add torrent -> info");
    222         statusString = [fileString stringByAppendingString: statusString];
     217            fileString = NSLocalizedString(@"1 File", "Add torrent -> info");
     218       
     219        statusString = [NSString stringWithFormat: NSLocalizedString(@"%@, %@ (%@ selected)", "Add torrent -> info"), fileString,
     220                        statusString, [NSString stringForFileSize: [fTorrent totalSizeSelected]]];
    223221    }
    224222   
Note: See TracChangeset for help on using the changeset viewer.