Have different fallback language than the keys used in NSLocalizedString(@"Text aka. key",@"Descript

Posted by Allisone on Stack Overflow See other posts from Stack Overflow or by Allisone
Published on 2010-06-11T12:55:49Z Indexed on 2010/06/11 20:13 UTC
Read the original article Hit count: 316

I use everywhere NSLocalizedString(@"Text in deutsch",@"das Textfeld Text in deutsch") I have two Localizable.strings files. One for german and one for english.

What I realized now is. If you have a german iPhone, you get the german text, if you have your iPhone set to english you get the english text. But if you have lets say french, then you would get the german text, too because I use german as the keys, right ? Is there a way to set english as fallback language instead of the german one used everywhere in my code ? (I have so many occurences of NSLocalizedString that it would be a pain to change the keys now everywhere (in code, in Localized.string.en and in Localized.string.de))

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode