I want to localize a couple of lines in my iPhone application, and it still works for the 5 languages ββthat I have selected. However, I have one problem, if I have not defined a key for a particular language, I want it to select English as a reserve, because I know that I have precisely defined each line in English. The fact is that it is not very important that all keys are translated, why it is good to show English, even if the iPhone is installed in Spanish, for example.
Example:
en:
"HELLO" = "hello" ; "PERSON" = "my friend" ;
Question:
"HELLO" = "hola" ;
Expected Result:
If the iPhone is installed in English, I want it to say: hello, my friend , and if the language value is set to Spanish, I want to say hola, my friend . Currently, the application will display hola, PERSON . (I use the NSLocalizedString method).
This is probably a really simple solution, but I have not found a good one. Thanks for the help,
Matthias
source share