Changeset 5376


Ignore:
Timestamp:
Mar 25, 2008, 1:01:28 AM (14 years ago)
Author:
livings124
Message:

improve stats strings for future localizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatsWindowController.m

    r5296 r5376  
    137137    [fUploadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes", "stats -> bytes"),
    138138                                    statsSession.uploadedBytes]];
    139     [fUploadedAllField setStringValue: [[NSString stringForFileSize: statsAll.uploadedBytes]
    140                                         stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
     139    [fUploadedAllField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"),
     140                                        [NSString stringForFileSize: statsAll.uploadedBytes]]];
    141141    [fUploadedAllField setToolTip: [NSString stringWithFormat:NSLocalizedString(@"%u bytes", "stats -> bytes"),
    142142                                    statsAll.uploadedBytes]];
     
    145145    [fDownloadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes", "stats -> bytes"),
    146146                                    statsSession.downloadedBytes]];
    147     [fDownloadedAllField setStringValue: [[NSString stringForFileSize: statsAll.downloadedBytes]
    148                                             stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
     147    [fDownloadedAllField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"),
     148                                        [NSString stringForFileSize: statsAll.downloadedBytes]]];
    149149    [fDownloadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes", "stats -> bytes"),
    150150                                        statsAll.downloadedBytes]];
     
    153153   
    154154    NSString * totalRatioString = statsAll.ratio != TR_RATIO_NA
    155         ? [[NSString stringForRatio: statsAll.ratio] stringByAppendingString: NSLocalizedString(@" total", "stats total")]
     155        ? [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"), [NSString stringForRatio: statsAll.ratio]]
    156156        : NSLocalizedString(@"Total N/A", "stats total");
    157157    [fRatioAllField setStringValue: totalRatioString];
    158158   
    159159    [fTimeField setStringValue: [NSString timeString: statsSession.secondsActive showSeconds: NO]];
    160     [fTimeAllField setStringValue: [[NSString timeString: statsAll.secondsActive showSeconds: NO]
    161                                     stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
     160    [fTimeAllField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"),
     161                                        [NSString timeString: statsAll.secondsActive showSeconds: NO]]];
    162162   
    163163    if (statsAll.sessionCount == 1)
Note: See TracChangeset for help on using the changeset viewer.