I am localizing my app for Denmark. I have the Localizable.Strings and the XIBs translated into Danish.
On iPhone a user can
- Set the ‘Region Format’ to ‘Denmark’
but keep the language ‘English’ - Set the ‘Region Format’ to any English-speaking country but keep
the language ‘Dansk’ - Set the ‘Region Format’ to ‘Denmark’ and language ‘Dansk’
My question is: for any of the above settings should the app show the ‘Danish’ version (which for my App will mean all text in UI and the database to be in Danish.) or should the ‘Danish’ version only come when user sets the language to ‘Dansk’?
This is a great question.
The real issue it comes down to is, in Apple’s opinion, as they did it, does NSLocalizedString tend to favour the ‘Region Format’ or the ‘language’ setting?
I have never been able to find a clear answer on this, I just let NSLocalizedString decide.
(Purely FWIW, I think follow the “language” setting.)
It’s possible the following code snippets could help you.
It may not help, but I hope it helps.