Return to Snippet

Revision: 53239
at November 17, 2011 03:19 by neoline

Initial Code
- (void)applicationDidFinishLaunching:(UIApplication *)application {
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", @""));
// Override point for customization after application launch
[window makeKeyAndVisible];

Initial URL

Initial Description
How to add multiple Language localization to an App.

Initial Title
Localized Language Tutorial

Initial Tags
c, iphone

Initial Language
Objective C