mirror of
https://github.com/transmission/transmission.git
synced 2026-04-27 20:24:17 +01:00
in the off chance this ocurs, "1 byte" instead of "1 bytes"
This commit is contained in:
@@ -42,7 +42,12 @@
|
||||
+ (NSString *) stringForFileSize: (uint64_t) size
|
||||
{
|
||||
if (size < 1024)
|
||||
return [NSString stringWithFormat: @"%lld %@", size, NSLocalizedString(@"bytes", "File size - bytes")];
|
||||
{
|
||||
if (size != 1)
|
||||
return [NSString stringWithFormat: @"%lld %@", size, NSLocalizedString(@"bytes", "File size - bytes")];
|
||||
else
|
||||
return NSLocalizedString(@"1 byte", "File size - bytes");
|
||||
}
|
||||
|
||||
CGFloat convertedSize;
|
||||
NSString * unit;
|
||||
|
||||
Reference in New Issue
Block a user