Consider the following situation:
- We have two Localizable.string files, one in en.lproj and one in it.lproj
- When the user switches to English or Italian, the proper localized string is loaded using NSLocalizedString(@”keyword”, nil)
- If one of the files is missing the keyword, the string is not retrieved
Is there any way to make this macro load the string from a specific language if it’s keyword is not found in the current locale’s Localizable.string?
NSLocalizedStringWithDefaultValuefunction is probably what you need – using it you can specify default value for the case if localization is not found for a given key.