How to change current the language?
<pre><code>defs = [NSUserDefaults standardUserDefaults];
languages=[[NSMutableArray alloc]init];
languages= [defs objectForKey:@"AppleLanguages"];
NSString* preferredLang = [languages objectAtIndex:14];
NSString *chn=@"zh-Hans";
NSString *eng=@"en";
[languages replaceObjectAtIndex:0 withObject:chn];
[languages replaceObjectAtIndex:14 withObject:eng];
defs=(NSUserDefaults*)languages;
</code></pre>

<p>And I can change the content of NSUserDefaults defs. But it doesn't have an effect on applelanguage. Can anyone help me? I need to store the first object of defs as the current language.</p>
