Quote:
Originally Posted by greenhoney
I am developing an app that will be available in various languages (spanish, english, german).
is it necessary to publish three different version (for each language) of the app or is there a way to upload only one app to the app store and the app detects the language of the user automatically and offers the right language?
what’s best practice for that?
Thanks!
|
I use localized based strings for this, for eg:
fr french
en english
de German
gr greek
You essentially define a key/value pair in these files, and from the code, you do something like:
labelHeading.text = NSLocalizedString(@"headingSettings", "Settings");
In this case, I'd have an entry of (in my en file):
"headingSettings" = "Settings";
It gets a bit more complicated with .xib files, but I find altering the controls (UILabel, etc) by code is better than having multiple localized .xib
Note, the sample app "International Mountains" might help you with a solid example of Localization