HI,
I want to add the 2 languages to my application like english and italian
so i using following code :
NSBundle *bundle = nil;
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defs objectForKey:@"AppleLanguages"];
NSString *current = [[languages objectAtIndex:0] retain];
NSLog(@"preferredLang: %@", current);
NSString *path = [[ NSBundle mainBundle ] pathForResource:current ofType:@"lproj" ];
bundle = [[NSBundle bundleWithPath

ath] retain];
[bundle localizedStringForKey:@"welcome" value:@"" table:nil];
NSLog(@"alternate is %@",[bundle localizedStringForKey:@"welcome" value:@"" table:nil]);
NSString *varStr = @"welcome";
NSString *string1 = NSLocalizedString(varStr,@"");
NSLog(@"string1 is %@",string1);
And i am creating the localization.strings for 2 languages and adding the below thing
"welcome" = @"italian language script"... But it is display the key valu as welcome instead of italian language script y so... Please help me ...