Address format conversion warnings in localizations (#3059)

This commit is contained in:
Antoine Cœur
2022-05-14 13:31:24 +08:00
committed by GitHub
parent 659969a436
commit 5d52da8726
43 changed files with 581 additions and 551 deletions

View File

@@ -321,11 +321,10 @@
//status field
NSString* fileString;
NSInteger count = self.torrent.fileCount;
NSUInteger count = self.torrent.fileCount;
if (count != 1)
{
fileString = [NSString
stringWithFormat:NSLocalizedString(@"%@ files", "Add torrent -> info"), [NSString formattedUInteger:count]];
fileString = [NSString stringWithFormat:NSLocalizedString(@"%lu files", "Add torrent -> info"), count];
}
else
{