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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -