Changeset 3913


Ignore:
Timestamp:
Nov 21, 2007, 2:27:23 AM (15 years ago)
Author:
livings124
Message:

don't pluralize "time" if opened only once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatsWindowController.m

    r3912 r3913  
    9797                                    stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
    9898   
    99     [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d times", "stats window -> times opened"),
     99    if (statsAll.sessionCount == 1)
     100        [fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")];
     101    else
     102        [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d times", "stats window -> times opened"),
    100103                                        statsAll.sessionCount]];
    101104}
Note: See TracChangeset for help on using the changeset viewer.