Proper way to translate

Hello,


I am just wondering - what is the proper way to translate an app in to different languages? I want to automatically detect the users preferred language, and then set it compared to that. I tried to use the "let countryCode = NSLocale.currentLocale().objectForKey(NSLocaleCountryCode) as! String", and then check the outcome of that, and then set all of my labels, textfields .text to the other language. Is there a better way of doing this? Because as you probably know, you can't find out the users preferred language just by getting its region. I have read something about internationalization and localization, but I haven't really found any thing. Thanks in advance.

Answered by guywithmazda in 102017022
Accepted Answer

These might help (haven't used localization myself, just suggesting based on the titles):

Internationalization and Localization Guide

Internationalization and Localization for iOS

Internationalization and Localization for OS X

Last time I localized, I set langs in project settings and then made different XIBs for each country. NSStrings then pick up the translasted content from .strings files accordingly.

Proper way to translate
 
 
Q