PDA

View Full Version : System language




Svinja
Nov 3, 2008, 08:16 AM
Hello, i have app that supports 3 languages, is it possible to detect default system language?



jnic
Nov 3, 2008, 09:48 AM
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defs objectForKey:@"AppleLanguages"];
NSString* preferredLang = [languages objectAtIndex:0];

http://developer.apple.com/documentation/MacOSX/Conceptual/BPInternational/Articles/ChoosingLocalizations.html

Svinja
Nov 3, 2008, 01:09 PM
thx