NSStringGenderRuleType does not work as expected on iOS 7.0+

Originator:jnjosh
Number:rdar://16670931 Date Originated:4/20/2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 7.1
Classification:Other Bug Reproducible:Always
 
Summary:
In the Foundation Release Notes for OS X 10.9 a new feature was introduced for using NSStringGenderRuleType via the new Localizable.stringsdict file. The notes specify using integers to distinguish between the proper gender section in the strings dict. This does not work in practice and only returns (null).

Steps to Reproduce:
1. Create a project with 3 labels for Male, Female, and Neutral
2. Add a localized string to a Localizable.stringsdict file that uses NSStringGenderRuleType.
3. Use `-localizedStringWithFormat:` and provide the appropriate gender integer and set that resulting value to the label
4. Build and Run the app to see (null)

Expected Results:
The proper gender should be displayed from the stringsdict file. Instead of "Nick is (null) name" it should read "Nick is his name".

Actual Results:
(null) is returned and, as is the case in the attached sample, it says "Nick is (null) name".

--

Sample can be viewed at https://github.com/jnjosh/RadarSamples/tree/master/GenderTesting

Comments

gender support starting working in iOS 9.0


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!