string folding ftw

This commit is contained in:
Mitchell Livingston 2008-04-12 17:52:37 +00:00
parent 9fcf0c19f9
commit d15a768045
1 changed files with 8 additions and 5 deletions

View File

@ -1078,12 +1078,15 @@ typedef enum
if (have == 0) if (have == 0)
[fHaveField setStringValue: [NSString stringForFileSize: 0]]; [fHaveField setStringValue: [NSString stringForFileSize: 0]];
else if (have == haveVerified)
[fHaveField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ verified",
"Inspector -> Activity tab -> have"), [NSString stringForFileSize: haveVerified]]];
else else
[fHaveField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ (%@ verified)", {
"Inspector -> Activity tab -> have"), [NSString stringForFileSize: have], [NSString stringForFileSize: haveVerified]]]; NSString * verifiedString = [NSString stringWithFormat: NSLocalizedString(@"%@ verified", "Inspector -> Activity tab -> have"),
[NSString stringForFileSize: haveVerified]];
if (have == haveVerified)
[fHaveField setStringValue: verifiedString];
else
[fHaveField setStringValue: [NSString stringWithFormat: @"%@ (%@)", [NSString stringForFileSize: have], verifiedString]];
}
[fDownloadedTotalField setStringValue: [NSString stringForFileSize: downloadedTotal]]; [fDownloadedTotalField setStringValue: [NSString stringForFileSize: downloadedTotal]];
[fUploadedTotalField setStringValue: [NSString stringForFileSize: uploadedTotal]]; [fUploadedTotalField setStringValue: [NSString stringForFileSize: uploadedTotal]];