Changeset 11418


Ignore:
Timestamp:
Nov 14, 2010, 9:04:25 PM (11 years ago)
Author:
livings124
Message:

a couple more formatted integers

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AddWindowController.m

    r10493 r11418  
    237237        NSInteger count = [fTorrent fileCount];
    238238        if (count != 1)
    239             fileString = [NSString stringWithFormat: NSLocalizedString(@"%d files", "Add torrent -> info"), count];
     239            fileString = [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Add torrent -> info"),
     240                            [NSString formattedUInteger: count]];
    240241        else
    241242            fileString = NSLocalizedString(@"1 file", "Add torrent -> info");
  • trunk/macosx/CreatorWindowController.m

    r10669 r11418  
    158158        NSInteger count = fInfo->fileCount;
    159159        if (count != 1)
    160             fileString = [NSString stringWithFormat: NSLocalizedString(@"%d files", "Create torrent -> info"), count];
     160            fileString = [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Create torrent -> info"),
     161                            [NSString formattedUInteger: count]];
    161162        else
    162163            fileString = NSLocalizedString(@"1 file", "Create torrent -> info");
  • trunk/macosx/DragOverlayWindow.m

    r10097 r11418  
    130130            fileString = NSLocalizedString(@"1 file", "Drag overlay -> torrents");
    131131        else
    132             fileString= [NSString stringWithFormat: NSLocalizedString(@"%d files", "Drag overlay -> torrents"), fileCount];
     132            fileString= [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Drag overlay -> torrents"),
     133                            [NSString formattedUInteger: fileCount]];
    133134        secondString = [NSString stringWithFormat: @"%@, %@", fileString, secondString];
    134135    }
     
    139140    else
    140141    {
    141         name = [NSString stringWithFormat: NSLocalizedString(@"%d Torrent Files", "Drag overlay -> torrents"), count];
     142        name = [NSString stringWithFormat: NSLocalizedString(@"%@ Torrent Files", "Drag overlay -> torrents"),
     143                [NSString formattedUInteger: count]];
    142144        secondString = [secondString stringByAppendingString: @" total"];
    143145        icon = [NSImage imageNamed: @"TransmissionDocument.icns"];
  • trunk/macosx/InfoWindowController.m

    r11316 r11418  
    391391            [fImageView setImage: [NSImage imageNamed: NSImageNameMultipleDocuments]];
    392392           
    393             [fNameField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d Torrents Selected",
    394                                             "Inspector -> selected torrents"), numberSelected]];
     393            [fNameField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ Torrents Selected",
     394                                            "Inspector -> selected torrents"),
     395                                            [NSString formattedUInteger: numberSelected]]];
    395396       
    396397            uint64_t size = 0;
     
    411412                    fileString = NSLocalizedString(@"1 file", "Inspector -> selected torrents");
    412413                else
    413                     fileString = [NSString stringWithFormat: NSLocalizedString(@"%d files", "Inspector -> selected torrents"), fileCount];
     414                    fileString = [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Inspector -> selected torrents"),
     415                                    [NSString formattedUInteger: fileCount]];
    414416                [fileStrings addObject: fileString];
    415417            }
     
    420422                    magnetString = NSLocalizedString(@"1 magnetized transfer", "Inspector -> selected torrents");
    421423                else
    422                     magnetString = [NSString stringWithFormat: NSLocalizedString(@"%d magnetized transfers",
    423                                     "Inspector -> selected torrents"), magnetCount];
     424                    magnetString = [NSString stringWithFormat: NSLocalizedString(@"%@ magnetized transfers",
     425                                    "Inspector -> selected torrents"), [NSString formattedUInteger: magnetCount]];
    424426                [fileStrings addObject: magnetString];
    425427            }
Note: See TracChangeset for help on using the changeset viewer.