I'm a bit confused by the .stringsdict
documentation (scroll to "Localized Property List File").
Given a number of files, I want to show Save File or save Save Files accordingly. I thought the following would work, but doesn't.
In code:
NSString *string = [NSString localizedStringWithFormat:NSLocalizedString(@"%Save Files", @""), (long)files.count];
In Localizable.stringsdict
:
<key>Save Files</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>Save %#@files@</string>
<key>files</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>one</key>
<string>File</string>
<key>other</key>
<string>Files</string>
</dict>
</dict>
Always shows Save Files, no matter the count.
What am I doing wrong?