iPhone internationalization: falling back to a default language

Posted by MihaiD on Stack Overflow See other posts from Stack Overflow or by MihaiD
Published on 2010-04-15T12:37:40Z Indexed on 2010/04/15 12:43 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone