Davut Gürbüz
Davut Gürbüz

Reputation: 5736

Setting default language

I would like to see default button captions in my native language ,

Even I changed iPad's language to another lang. my app still shows English ones...Edit,Done,Save etc.

I also set CFBundleDevelopmentRegion as a User-Defined variable in XCode but not helped !

Can you help ?

Upvotes: 5

Views: 5723

Answers (2)

Davut Gürbüz
Davut Gürbüz

Reputation: 5736

For monotouch I think it is different, They hide some langs for reducing the size of IPA.

http://docs.xamarin.com/guides/ios/advanced_topics/localization_and_internationalization

Upvotes: 1

Maxim Korobov
Maxim Korobov

Reputation: 2572

You should make these things:

  • Add your native language to app's supported Localization array of languages; how it looks like in app settings

  • Make your Application.Main procedure looks like:

    static void Main (string[] args)
    {
        // if you want to use a different Application Delegate class from "AppDelegate"
        // you can specify it here.
        NSUserDefaults.StandardUserDefaults.SetValueForKey(NSArray.FromStrings("tr"), new NSString("AppleLanguages"));
        NSUserDefaults.StandardUserDefaults.Synchronize();
        UIApplication.Main (args, null, "AppDelegate");
    }

Then, this

enter image description here

turns to this

enter image description here

(I suggested that your language is turkish.)

Upvotes: 14

Related Questions