I want to localize a couple of strings in my iPhone app and it works so far for the 5 languages I've selected. However, I have one issue, if I haven't defined a key for a specific language I want it to choose english as a fallback because I know that I have defined every string for sure in english. The thing is that it's not very important that all keys are translated why it's okay to show english even if the iPhone is set to spanish, for instance.
Example:
en:
"HELLO" = "hello" ;
"PERSON" = "my friend" ;
es:
"HELLO" = "hola" ;
Expected Outcome:
If the iPhone is set to english I want it to say: hello, my friend
and if the languange is set to spanish I want it to say hola, my friend
. Currently the app will output hola, PERSON
. (I use the NSLocalizedString method).
There is probably a really easy solution but I couldn't find any good ones. Thanks for the help,
Mattias