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");
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];
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"];
}
{
[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;
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)
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];
}