]> granicus.if.org Git - transmission/commitdiff
a couple more formatted integers
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 14 Nov 2010 21:04:25 +0000 (21:04 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 14 Nov 2010 21:04:25 +0000 (21:04 +0000)
macosx/AddWindowController.m
macosx/CreatorWindowController.m
macosx/DragOverlayWindow.m
macosx/InfoWindowController.m

index 98db3ba3c9b591db8cb03114952468cd3c5b8cb0..0e4de1dd9711b619161fcab822b137ff0bbbc2fe 100644 (file)
         NSString * fileString;
         NSInteger count = [fTorrent fileCount];
         if (count != 1)
-            fileString = [NSString stringWithFormat: NSLocalizedString(@"%d files", "Add torrent -> info"), count];
+            fileString = [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Add torrent -> info"),
+                            [NSString formattedUInteger: count]];
         else
             fileString = NSLocalizedString(@"1 file", "Add torrent -> info");
         
index f51f8775c16d86805c2fa8024a6de769a999701e..03d8f7908e1d89e3fd8274d71974d139a555daef 100644 (file)
         NSString * fileString;
         NSInteger count = fInfo->fileCount;
         if (count != 1)
-            fileString = [NSString stringWithFormat: NSLocalizedString(@"%d files", "Create torrent -> info"), count];
+            fileString = [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Create torrent -> info"),
+                            [NSString formattedUInteger: count]];
         else
             fileString = NSLocalizedString(@"1 file", "Create torrent -> info");
         statusString = [NSString stringWithFormat: @"%@, %@", fileString, statusString];
index 39b988549ba3330029d7237201bd497c9b426354..418304d0021f910d6f37dd77661fb9e4573cdeab 100644 (file)
         if (fileCount == 1)
             fileString = NSLocalizedString(@"1 file", "Drag overlay -> torrents");
         else
-            fileString= [NSString stringWithFormat: NSLocalizedString(@"%d files", "Drag overlay -> torrents"), fileCount];
+            fileString= [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Drag overlay -> torrents"),
+                            [NSString formattedUInteger: fileCount]];
         secondString = [NSString stringWithFormat: @"%@, %@", fileString, secondString];
     }
     
         icon = [[NSWorkspace sharedWorkspace] iconForFileType: folder ? NSFileTypeForHFSTypeCode('fldr') : [name pathExtension]];
     else
     {
-        name = [NSString stringWithFormat: NSLocalizedString(@"%d Torrent Files", "Drag overlay -> torrents"), count];
+        name = [NSString stringWithFormat: NSLocalizedString(@"%@ Torrent Files", "Drag overlay -> torrents"),
+                [NSString formattedUInteger: count]];
         secondString = [secondString stringByAppendingString: @" total"];
         icon = [NSImage imageNamed: @"TransmissionDocument.icns"];
     }
index 07842dc0ca1249446c98e090f501c8402d9d141e..2a5a571f123f78359706171340b5f91b391e85cc 100644 (file)
@@ -390,8 +390,9 @@ typedef enum
         {
             [fImageView setImage: [NSImage imageNamed: NSImageNameMultipleDocuments]];
             
-            [fNameField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d Torrents Selected",
-                                            "Inspector -> selected torrents"), numberSelected]];
+            [fNameField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ Torrents Selected",
+                                            "Inspector -> selected torrents"),
+                                            [NSString formattedUInteger: numberSelected]]];
         
             uint64_t size = 0;
             NSUInteger fileCount = 0, magnetCount = 0;
@@ -410,7 +411,8 @@ typedef enum
                 if (fileCount == 1)
                     fileString = NSLocalizedString(@"1 file", "Inspector -> selected torrents");
                 else
-                    fileString = [NSString stringWithFormat: NSLocalizedString(@"%d files", "Inspector -> selected torrents"), fileCount];
+                    fileString = [NSString stringWithFormat: NSLocalizedString(@"%@ files", "Inspector -> selected torrents"),
+                                    [NSString formattedUInteger: fileCount]];
                 [fileStrings addObject: fileString];
             }
             if (magnetCount > 0)
@@ -419,8 +421,8 @@ typedef enum
                 if (magnetCount == 1)
                     magnetString = NSLocalizedString(@"1 magnetized transfer", "Inspector -> selected torrents");
                 else
-                    magnetString = [NSString stringWithFormat: NSLocalizedString(@"%d magnetized transfers",
-                                    "Inspector -> selected torrents"), magnetCount];
+                    magnetString = [NSString stringWithFormat: NSLocalizedString(@"%@ magnetized transfers",
+                                    "Inspector -> selected torrents"), [NSString formattedUInteger: magnetCount]];
                 [fileStrings addObject: magnetString];
             }