mirror of
https://github.com/transmission/transmission
synced 2025-03-03 10:15:45 +00:00
more string folding
This commit is contained in:
parent
f741e74659
commit
32b41bb72e
4 changed files with 13 additions and 11 deletions
|
@ -122,10 +122,10 @@
|
|||
NSString * fileString;
|
||||
int count = fInfo->fileCount;
|
||||
if (count != 1)
|
||||
fileString = [NSString stringWithFormat: NSLocalizedString(@"%d Files, ", "Create torrent -> info"), count];
|
||||
fileString = [NSString stringWithFormat: NSLocalizedString(@"%d Files", "Create torrent -> info"), count];
|
||||
else
|
||||
fileString = NSLocalizedString(@"1 File, ", "Create torrent -> info");
|
||||
statusString = [fileString stringByAppendingString: statusString];
|
||||
fileString = NSLocalizedString(@"1 File", "Create torrent -> info");
|
||||
statusString = [NSString stringWithFormat: @"%@, %@", fileString, statusString];
|
||||
}
|
||||
[fStatusField setStringValue: statusString];
|
||||
|
||||
|
|
|
@ -118,10 +118,10 @@
|
|||
{
|
||||
NSString * fileString;
|
||||
if (fileCount == 1)
|
||||
fileString = NSLocalizedString(@"1 File, ", "Drag overlay -> torrents");
|
||||
fileString = NSLocalizedString(@"1 File", "Drag overlay -> torrents");
|
||||
else
|
||||
fileString= [NSString stringWithFormat: NSLocalizedString(@"%d Files, ", "Drag overlay -> torrents"), fileCount];
|
||||
secondString = [fileString stringByAppendingString: secondString];
|
||||
fileString= [NSString stringWithFormat: NSLocalizedString(@"%d Files", "Drag overlay -> torrents"), fileCount];
|
||||
secondString = [NSString stringWithFormat: @"%@, %@", fileString, secondString];
|
||||
}
|
||||
|
||||
NSImage * icon;
|
||||
|
|
Binary file not shown.
|
@ -222,8 +222,10 @@ typedef enum
|
|||
fileCount += [torrent fileCount];
|
||||
}
|
||||
|
||||
[fBasicInfoField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d Files, %@ Total",
|
||||
"Inspector -> above tabs -> selected torrents"), fileCount, [NSString stringForFileSize: size]]];
|
||||
[fBasicInfoField setStringValue: [NSString stringWithFormat: @"%@, %@",
|
||||
[NSString stringWithFormat: NSLocalizedString(@"%d Files", "Inspector -> selected torrents"), fileCount],
|
||||
[NSString stringWithFormat: NSLocalizedString(@"%@ Total", "Inspector -> selected torrents"),
|
||||
[NSString stringForFileSize: size]]]];
|
||||
[fBasicInfoField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes",
|
||||
"Inspector -> above tabs -> selected torrents"), size]];
|
||||
}
|
||||
|
@ -362,11 +364,11 @@ typedef enum
|
|||
NSString * fileString;
|
||||
int fileCount = [torrent fileCount];
|
||||
if (fileCount == 1)
|
||||
fileString = NSLocalizedString(@"1 File, ", "Inspector -> above tabs -> selected torrents");
|
||||
fileString = NSLocalizedString(@"1 File", "Inspector -> above tabs -> selected torrents");
|
||||
else
|
||||
fileString= [NSString stringWithFormat: NSLocalizedString(@"%d Files, ",
|
||||
fileString= [NSString stringWithFormat: NSLocalizedString(@"%d Files",
|
||||
"Inspector -> above tabs -> selected torrents"), fileCount];
|
||||
basicString = [fileString stringByAppendingString: basicString];
|
||||
basicString = [NSString stringWithFormat: @"%@, %@", fileString, basicString];
|
||||
}
|
||||
[fBasicInfoField setStringValue: basicString];
|
||||
[fBasicInfoField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes",
|
||||
|
|
Loading…
Reference in a new issue