Hello there,
I'm creating an application which there's a way to the user change its language on the Settings.app (so I'm using the Settings.bundle file), it's working great. But when I change the language and open the application again, it changes the key AppleLanguages with the selected language, but no changes to the "interface" (nothing get translated), but if I close the application and open it again, it will load just nice, with the right language and everything.
I've already tried putting this following code in a bunch of methods, because I think this is happening because I should set the application language even before the view actually loads, but it seems it's something even more beyond that:
NSUserDefaults *conf = [NSUserDefaults standardUserDefaults];
if([[conf stringForKey:@"language"] isEqualToString:@"pt"]) {
[conf setObject:[NSArray arrayWithObjects:@"pt",@"en",nil] forKey:@"AppleLanguages"];
} else {
[conf setObject:[NSArray arrayWithObjects:@"en",@"pt",nil] forKey:@"AppleLanguages"];
}
Any ideas? Thanks in advance.