Everyone
I need to implement application for multi-languages select for only this application not for whole device.
please,give me idea for that.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Now you must do an interface to let the user choose the language, and save in NSUserDefaults the selected option. And finally, in each viewDidLoad (or viewWillAppear), check that default object, and set the text to all your outlets depending on the selected language. You must know how to read from plists, this is another question. Cheers!
Here some code:
Of course, you will have to set (at the very first application launch) the default language to English (or German, whatever, it’s important to set it, not to leave it nil). And of course you will have to set
[[NSUserDefaults standardUserDefaults] objectForKey:@"selected_lang"]to the selected language when the user does it.