2

I have read about localization of iOS applications and now I would like to change application language according

NSString *lang = [[NSUserDefaults standardUserDefaults] stringForKey:@"Lang"];

but NOT according to system international settings.

Is it possible?

EDITED

I have found the answer in these posts:

How to force NSLocalizedString to use a specific language

Change language of the ios application

Community
  • 1
  • 1
Romowski
  • 1,518
  • 5
  • 25
  • 50

1 Answers1

0

M1: NSLocale

NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0];

M2:

NSString *language = [[NSUserDefaults standUserDefaults] objectForKey:@"AppleLanguages"];

You should remember one point that "Locale" is different from "Language".

Jitendra
  • 5,055
  • 2
  • 22
  • 42
  • Shall I link this answer to this [question](http://stackoverflow.com/questions/17313786/the-two-methods-of-getting-ios-current-language-what-is-the-difference) of yours and from there to [this duplicate](http://stackoverflow.com/questions/7872356/what-is-the-difference-between-nslocale-preferredlanguages-and-nsuserdefault) ..?? – DD_ Jun 26 '13 at 07:33