views:

213

answers:

1

Hello,

My app has some languages that the user can change whenever wants.

The problem is that always uses the current device language selected, so at least my localizable strings are working as expected, but no matter wich language I set, I'm getting alwats the default selected of the device.

Where I have to call this code?

[[NSUserDefaults standardUserDefaults] registerDefaults:
 [NSDictionary dictionaryWithObject:[NSArray arrayWithObjects:@"ca", @"en", nil]
 forKey:@"AppleLanguages"]];

Currently I'm calling from the AppDelegate implementation file:

- (void)applicationDidFinishLaunching:(UIApplication *)application {    

Thanks,

r.

A: 

Hola Mongeta,

Per la teva pregunta entenc que ets català/na :)

Estic fent una aplicació que té la opció de canviar d'idioma entre català i castellà.

Em podries dir com vas fer la final per gestionar aquest tema?

Moltes gracies

Mario