mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
don't pluralize "time" if opened only once
This commit is contained in:
parent
7e6194ae97
commit
33e23b35ae
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ tr_handle * fLib;
|
|||
[fTimeAllField setStringValue: [[self timeString: statsAll.secondsActive]
|
||||
stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
|
||||
|
||||
[fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d times", "stats window -> times opened"),
|
||||
if (statsAll.sessionCount == 1)
|
||||
[fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")];
|
||||
else
|
||||
[fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d times", "stats window -> times opened"),
|
||||
statsAll.sessionCount]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue