iphone - How to display these items in other language? -


I search around the web, but I can not find the answer, maybe this question is very simple.

How did I develop in the app, display those default items, such as Barbutton Itam, ImagePeker Button, or UitQuestView, pop-up, copy, paste, crop, replace and select all Menu, I can not

thanks

I wrote a tutorial about it Was, where I stepped through, how to do it (which I translated into six languages On the basis of the day):

I have also described the issues of some of the languages ​​/ idioms that I was working, which in meditation Keeping can be useful.

EDIT: To answer your comment, I have a technical problem for implementing many languages, D still do the same (all localization). If not, set it to be localized, but only translate specific strings (and leave the rest as English).

If you really want to do everything yourself, you can: NSUserDefaults * defaults = [NSUserDefaults Standard User Defaults]; NSArray * Languages ​​= [Default Object Foreaki: @ "Apple Language"]; NSString * CurrentLanguage = [ObjectOut Index of languages: 0];

Then you can compare the current language variable and display appropriate text in if / then / else if / etc code block. I probably recommend having a "other display in English" at the end of the code block, just in case you are different from the language you returned, what were you expecting?

Edit: I just read again you were asking, and you realized that you wanted to localize system functions. It is not something you can control - when a user goes into their settings and their language changes, then all those system interfaces (such as "cut / copy / paste") will be automatically localized. As long as they set their proper language in their settings, it should work automatically.

Comments