Quote:
Originally Posted by Domele
What do you mean by the key value only? And what are you trying to accomplish? I reread your post and I actually don't understand what you are trying to do.
|
see, i want to change he value(meaning if i have submit value, then that submit should display in 2 language according to the the language display). . .
so i created the strings files and added the below string
""Welcome to Advance Localization" = "Bienvenue à l'avance la localisation"; for french
now i add the following code in viewdidload
NSString *path;
NSString *key = @"Welcome to Advance Localization";
path = [[NSBundle mainBundle] pathForResource:@"fr" ofType:@"lproj"];
NSBundle* languageBundle = [NSBundle bundleWithPath

ath];
// NSString* str=[languageBundle localizedStringForKey:key value:@"" table:nil];
NSString *str = NSLocalizedString(key, @"A comment about the string for later reference.");
NSLog(@"locale is %@ %@",path,str); now i want to display this "Bienvenue à l'avance la localisation" instead of "Welcome to Advance Localization" because i choosen fr...