iphone - Can I implement localization manually in ios? -


I have implemented localization in my iPhone app to support four languages ​​English, French, German and Spanish. So when the app starts, it detects the local language of the device and if it is one of four, it changes the app into a local language otherwise it supports the base language i.e. The English app requires that the user select and change the language from the app's settings, not on the device, so the app must not depend on the local language on the language device. it's possible? If so, how to do it? Please suggest me

Let's try:

  NSString * NSCustomLocalizedString (NSString * key) , NSString * comment) {NSString * rs = nil; // Change the [[NSUser Defaults standard user defaults] fullCorrect: key_language] with dissection in your language. If ([[NSUserDefaults standard user default] fullCorrect: KEY_LANGUAGE] == e_language_japanese) {rs = NSLocalizedStringFromTable (key, @ "Localizable.strings-ja", zero); } Else {rs = NSLocalizedStringFromTable (key, @ "Localizeable.strings-en", zero); } Returns RS; }    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -