Changeset 5150


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

streamline code from last commit

Location:
trunk/macosx
Files:
2 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   
  • trunk/macosx/English.lproj/Localizable.strings

    r5139 r5150  
    4141"%@ verified" = "%@ verified";
    4242
     43/* Add torrent -> info */
     44"%@, %@ (%@ selected)" = "%1$@, %2$@ (%3$@ selected)";
     45
    4346/* Create torrent -> info */
    4447"%@, %@ each" = "%1$@, %2$@ each";
     
    5659"%d Downloading" = "%d Downloading";
    5760
    58 /* Create torrent -> info
    59    Add torrent -> info
    60    Drag overlay -> torrents
     61/* Add torrent -> info */
     62"%d Files" = "%d Files";
     63
     64/* Drag overlay -> torrents
     65   Create torrent -> info
    6166   Inspector -> above tabs -> selected torrents */
    6267"%d Files, " = "%d Files, ";
     
    126131"1 day" = "1 day";
    127132
    128 /* Create torrent -> info
    129    Add torrent -> info
    130    Drag overlay -> torrents
     133/* Add torrent -> info */
     134"1 File" = "1 File";
     135
     136/* Drag overlay -> torrents
     137   Create torrent -> info
    131138   Inspector -> above tabs -> selected torrents */
    132139"1 File, " = "1 File, ";
     
    138145"1 time" = "1 time";
    139146
     147/* Filter Button -> tool tip */
     148"1 Transfer" = "1 Transfer";
     149
    140150/* Status bar transfer count */
    141151"1 transfer" = "1 transfer";
    142 
    143 /* Filter Button -> tool tip */
    144 "1 Transfer" = "1 Transfer";
    145152
    146153/* Move folder cannot be used alert -> message */
Note: See TracChangeset for help on using the changeset viewer.