#if 1 // DEBUG

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

NSArray *languages = [defaults objectForKey:@"AppleLanguages"];

NSString *currentLanguage = [languages objectAtIndex:0];

NSLog(@"Current Locale: %@", [[NSLocale currentLocale] localeIdentifier]);

NSLog(@"Current language: %@", currentLanguage);

NSLog(@"Welcome Text: %@", NSLocalizedString(@"WelcomeKey", @""));

#endif


2010-12-23 06:48:34.061 Sample[327:207] Current Locale: en_US

2010-12-23 06:48:34.062 Sample[327:207] Current language: en

2010-12-23 06:48:34.063 Sample[327:207] Welcome Text: WelcomeKey


current language 의 경우 ISO639 에 따라 표기 된다.

Language

ISO 639-1

ISO 639-2

English

en

eng

French

fr

fre

German

de

ger

Japanese

ja

jpn

Hawaiian

no designator

haw

+ Recent posts