I tried to add a localised value to Info.plist using the recommended InfoPlist.strings
Do I need to keep the key also in Info.plist?
My Info.plist
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
My localized strings
en.proj
-> InfoPlist.strings
/* Localized versions of Info.plist keys */
CFBundleName = "ABC-EN";
it.proj
-> InfoPlist.strings
/* Localized versions of Info.plist keys */
CFBundleName = "ABC-IT";
If I keep the key in Info.Plist as above, in the code, a variable which should have the key value
_localisedName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"];
is returning the string which is in Info.plist (myApp)
If I remove CFBundleName
from Info.plist the string is < nil >
There is another setting which I am missing? I have tried adding and removing both file from the copy bundle (without any change).