Xcode4 string resource internationalization for iOS

Source: Internet
Author: User

Refer to the methods in xcode3. For details, see:

Http://www.voland.com.cn/iphone-use-nslocalizedstring-internationalization

Http://blog.csdn.net/kmyhy/article/details/6237677

The method is to first createLocalizable. Strings file, add multi-language support, and then use the command line to write constant strings to the corresponding languageIn localizable. Strings.

Xcode4 cannot be used, and you do not need to run the genstrings command for every language. You only need to run the for English command, in xcode4 IDE, you can simply add a language support, for example:


Here I have added both Chinese and English.

Then you can translate the corresponding strings.

Note: If you delete the content in the Chinese string and want to use genstrings-O to strings file under the zh-Hans.lproj, it won't work. In xcode3, but in xcode4. Therefore, it is not easy to delete them, or you have to translate them all again.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.