mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
when creating a torrent with a single piece, remove "each" from "X size each"
This commit is contained in:
parent
c8abe4e28b
commit
0bc9135377
1 changed files with 5 additions and 7 deletions
|
@ -162,15 +162,13 @@
|
|||
}
|
||||
[fStatusField setStringValue: statusString];
|
||||
|
||||
NSString * piecesCountString;
|
||||
int piecesCount = fInfo->pieceCount;
|
||||
const int piecesCount = fInfo->pieceCount;
|
||||
if (piecesCount == 1)
|
||||
piecesCountString = NSLocalizedString(@"1 piece", "Create torrent -> info");
|
||||
[fPiecesField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"1 piece, %@", "Create torrent -> info"),
|
||||
[NSString stringForFileSize: fInfo->pieceSize]]];
|
||||
else
|
||||
piecesCountString = [NSString stringWithFormat: NSLocalizedString(@"%d pieces", "Create torrent -> info"),
|
||||
piecesCount];
|
||||
[fPiecesField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@, %@ each", "Create torrent -> info"),
|
||||
piecesCountString, [NSString stringForFileSize: fInfo->pieceSize]]];
|
||||
[fPiecesField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d pieces, %@ each", "Create torrent -> info"),
|
||||
piecesCount, [NSString stringForFileSize: fInfo->pieceSize]]];
|
||||
|
||||
fLocation = [[[[fDefaults stringForKey: @"CreatorLocation"] stringByExpandingTildeInPath] stringByAppendingPathComponent:
|
||||
[name stringByAppendingPathExtension: @"torrent"]] retain];
|
||||
|
|
Loading…
Reference in a new issue