Changeset 11419


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

use the number formatter when displaying bytes

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r11418 r11419  
    434434                    [NSString stringWithFormat: NSLocalizedString(@"%@ total", "Inspector -> selected torrents"),
    435435                        [NSString stringForFileSize: size]]]];
    436                 [fBasicInfoField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes",
    437                                                 "Inspector -> selected torrents"), size]];
     436                [fBasicInfoField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%@ bytes",
     437                                                "Inspector -> selected torrents"), [NSString formattedUInteger: size]]];
    438438            }
    439439            else
     
    486486            }
    487487            [fBasicInfoField setStringValue: basicString];
    488             [fBasicInfoField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "Inspector -> selected torrents"),
    489                                             [torrent size]]];
     488            [fBasicInfoField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%@ bytes", "Inspector -> selected torrents"),
     489                                            [NSString formattedUInteger: [torrent size]]]];
    490490        }
    491491        else
  • trunk/macosx/StatsWindowController.m

    r9844 r11419  
    168168   
    169169    [fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedBytes]];
    170     [fUploadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    171                                     statsSession.uploadedBytes]];
     170    [fUploadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%@ bytes", "stats -> bytes"),
     171                                    [NSString formattedUInteger: statsSession.uploadedBytes]]];
    172172    [fUploadedAllField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"),
    173173                                        [NSString stringForFileSize: statsAll.uploadedBytes]]];
    174     [fUploadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    175                                     statsAll.uploadedBytes]];
     174    [fUploadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%@ bytes", "stats -> bytes"),
     175                                    [NSString formattedUInteger: statsAll.uploadedBytes]]];
    176176   
    177177    [fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedBytes]];
    178     [fDownloadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    179                                     statsSession.downloadedBytes]];
     178    [fDownloadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%@ bytes", "stats -> bytes"),
     179                                    [NSString formattedUInteger: statsSession.downloadedBytes]]];
    180180    [fDownloadedAllField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"),
    181181                                        [NSString stringForFileSize: statsAll.downloadedBytes]]];
    182     [fDownloadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    183                                         statsAll.downloadedBytes]];
     182    [fDownloadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%@ bytes", "stats -> bytes"),
     183                                        [NSString formattedUInteger: statsAll.downloadedBytes]]];
    184184   
    185185    [fRatioField setStringValue: [NSString stringForRatio: statsSession.ratio]];
Note: See TracChangeset for help on using the changeset viewer.