views:

47

answers:

1

How can I get which language an app is running on? And I don't mean the preference set into settings!

Let me explain it further... I localised my app with three languages: English, Italian and Spanish. If the iPhone is set on Italian or Spanish, the app will use those two... it falls back to English otherwise.

For example: a French user gets the English version... so even if French is the language set, my app automatically use English. Now... how can I return this "value" in my code?

Thanks!

A: 

Dont really undertstand what this And I don't mean the preference set into settings! means?

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSArray *languages = [defaults objectForKey:@"AppleLanguages"];
NSString *currentLanguage = [languages objectAtIndex:0];
Aaron Saunders
Andrea