Localization and UIImagePickerController

folexfolex RUMember

What's Xamarin Studio analog to Xcode's "Make localizable"?

My problem is that UIImagePickerController's buttons are always in English. "Choose", "Retake", "Cancel". I think it's because my application didn't tell the system that it's localized.
It has something to do with en.lproj and others *.lproj folders but I can't figure out how exatcly it should be done.

Posts

  • DaniSchmidDaniSchmid CHMember

    Have you found the steps necessary for the UIImagePicker to be displayed in the Devices Language and not in English?

    I am at the same spot...

  • folexfolex RUMember

    DaniSchmid, sorry for so being so late with response. We've just wrote our own UIImagePicker.

  • JamesTangJamesTang CNMember

    Me too :(

  • I found next solution.
    You need to add next lines into Info.plist:

    <key>CFBundleDevelopmentRegion</key>
    <string>en,ru</string>    
    

    Value must contains minimum two any languages(no matter which).

  • yangevanyangevan USUniversity

    Background:
    I worked for a global company, so our's app also have to adapt different languages, like Germany,Enghlish,Spanish,Chinese ...
    In our app , there was a button could switch the App's language.

    Following was my solution:
    1> Set CFBundleAllowMixedLocalizations value to true in Info.plist(CFBundleAllowMixedLocalizations -> iOS language related to the iPhone system language)

          <key>CFBundleAllowMixedLocalizations</key>
          <true/>
    

    2> Key-Value set

        NSString key = new NSString ("AppleLanguages");
        NSUserDefaults.StandardUserDefaults.SetValueForKey (arrayMValue,key);
        NSUserDefaults.StandardUserDefaults.Synchronize ();
    

    The arrayMValue was an array which put the languages what want to support in your app. The index 0 means the first choice for your app language.

    After I did that, I have to restart the app , then it worked normally.
    Hope it was useful to someone.

Sign In or Register to comment.