How to localize iOS 6 new Info.plist privacy chains?

Apple introduced new privacy settings for each application, which allows users to decide whether the application is allowed to access user contacts, calendar, photos, and reminders. The user will see UIAlertView when the application first tries to access one of these resources, similar to the well-known mechanism when the application wants to access the location.

It is also possible to set whole lines so that the user knows why the application wants to access. However, this is done through the keys in Info.plist, for example. "Privacy - Contact Us Description" (NSContactsUsageDescription) for contacts.

Now I ask myself, how can I localize these values? For the text of the destination location, I used the destination property of the CLLocationManager instance using NSLocalizedString (...). How do I do something similar with these new keys in Info.plist?

Appendix: The new privacy keys are listed at the following link, but the summary column does not indicate them as localizable: https://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#/ / apple_ref / doc / uid / TP40009251-SW14

+25
ios ios6 localization
Sep 24 '12 at 11:40
source share
2 answers

Add the key to the localized InfoPlist.strings in the supporting files. It should look like this:

 /* Localized version of location services purpose for Info.plist */ NSLocationUsageDescription = "here is your purpose to use location service"; 
+44
Jan 03 '13 at 18:33
source share

You localize your Info.plist by localizing the InfoPlist.strings file.

+11
Sep 24
source share



All Articles