I am developing my own infrastructure using Xcode 4, and I use it in two sample applications (console and Mac OS X Cocoa).
I am trying to add localization to the framework, so I created two versions of the Localizable.strings file (en and fr versions), but every time I try to print a localized string from sample applications, I get only its technical name. For example, with the following line inside the frame code:
NSLog(NSLocalizedString(@"LOC_TEST", nil));
I get only "LOC_TEST" displayed on the output ...
Localization works great with the Cocoa application itself (meaning that the localized strings of the Cocoa application are shown accordingly).
Following this article , I tried to add localization to the plist framework file:
<key>CFBundleLocalizations</key> <array> <string>en</string> <string>fr</string> </array>
But that didn’t change anything ...
What am I missing?
source share