I wonder if some body know how can I connect my application language and NSLocalizeStrings,
For example: my app is on fr, ru,ro but User device is on en, and when user turn on app it on en but in app settings there is ro or fr. How can I pass my app language in NSLocalizedString.
Thanks.
UIAlertView *finishQuiz = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Finished Quiz",@"Quiz finished")
message:NSLocalizedString(@"You answered to all quiestions. If you win you will be informed by e-mail" ,@"Information")
delegate:self
cancelButtonTitle:NSLocalizedString(@"Le menu principale",@"MainMenu")
otherButtonTitles:nil, nil];
You don’t. The application will look for the
Localizable.stringsunder the appropriate localization according to the system language. If the user has set french as system language, the application will load its strings fromfr.lproj\Localizable.stringswhen you useNSLocalizedString(...).So
NSLocalizedString(@"SomeTest", @"This is a test description");will load this line fromfr.lproj\Localizable.stringFor more info, read up at: Localizing String Resources.