]> granicus.if.org Git - transmission/commitdiff
format the number of times opened
authorMitchell Livingston <livings124@transmissionbt.com>
Wed, 9 Feb 2011 02:49:32 +0000 (02:49 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Wed, 9 Feb 2011 02:49:32 +0000 (02:49 +0000)
macosx/StatsWindowController.m

index 96b5c649308c330117d97f58f32b7caa41890ff4..aac1513c0fb32d1979a0f2d821076c739e839cbe 100644 (file)
@@ -196,8 +196,8 @@ tr_session * fLib;
     if (statsAll.sessionCount == 1)
         [fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")];
     else
-        [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%llu times", "stats window -> times opened"),
-                                            statsAll.sessionCount]];
+        [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ times", "stats window -> times opened"),
+                                            [NSString formattedUInteger: statsAll.sessionCount]]];
 }
 
 - (void) performResetStats