Abhishek Sahay
Abhishek Sahay

Reputation: 186

How to set my ios app language to arabic?

Below is the code which I am using to set the language of my app, Some how I am unable to find the correct value for AppleLanguages. Can some one please guide me, where can I get the list of values for AppleLanguages?

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject:[NSArray arrayWithObject:@"arabic"] forKey:@"AppleLanguages"];

Upvotes: 0

Views: 2702

Answers (2)

Steven Kramer
Steven Kramer

Reputation: 8513

Do this really early in your app, like in your main() function.

    [[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"ar"] forKey:@"AppleLanguages"];

Upvotes: 0

Pochi
Pochi

Reputation: 13459

Follow this tutorial: http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial

Here is the code (as shown on the previous tutorial) http://www.loc.gov/standards/iso639-2/php/English_list.php

Upvotes: 1

Related Questions