Hassan Mokdad
Hassan Mokdad

Reputation: 5902

Localization in IOS without depending on the device language

Is it possible to create a localized IOS application independent from the device's language. For example in .net we set CurrentCulture and CurrentUICulture to the specified language, is this possible in IOS? The goal is to create a multilingual IOS application.

Upvotes: 1

Views: 529

Answers (2)

DarkDust
DarkDust

Reputation: 92335

Do not try to switch the language manually. Just follow Apples internationalization guides. Localization is pretty easy on iOS and you do not set anything to "switch" languages, iOS already chooses the correct one according to the languages you provide and the language priorities the user has set in the settings.

Upvotes: 0

tilo
tilo

Reputation: 14169

Yes, this is possible, but you shouldn't do it (see Human Interface Guidelines):

NSArray *langOrder = [NSArray arrayWithObjects:@"en", nil];
[[NSUserDefaults standardUserDefaults] setObject:langOrder forKey:@"AppleLanguages"];

Upvotes: 2

Related Questions