Closed michal-imo closed 11 years ago
You can pass nil value as a table name for default behavior. NSString *s = [[NSBundle mainBundle] pluralizedStringWithKey:key defaultValue:@"" table:nil pluralValue:2];
@michal-imo, You should be using macro SLPluralizedString(key, n, comment) Can I ask why do you use pluralizedStringWithKey:... method directly? Do you have issues with SLPluralizedString macro?
I do not use it directly. I want to use SLPluralizedStringFromTable because I have pluralized strings in a separate .strings file. That macro calls pluralizedStringWithKey:... method in the end.
Got it now. Thank you for reporting.
The function pluralizedStringWithKey:defaultValue:table:pluralValue: expects the parameter "table" to be a path to file with translations. Instead, it should behave as with Localizable.string file (default case) - the right file path is chosen depending on the locale.