Internationalized use in iOS (using steps after Xcode 6.0)

Source: Internet
Author: User

1. Today on the Internet to find a bit of information, because their own projects to do internationalization, to tell the truth at first, nothing to understand what is international ah, now finally understand what is international, now to everyone said internationalization this thing:

Internationalization is we in the mobile phone inside setting Choose a different language, in the app will appear in different languages: The following are the steps:

2. Create a demo, such as International demo:

3. Create a Localizable.strings file:

4. Then the internationalization of the corresponding localizable.strings:

5. Create a infoplist.strings: the same steps as above: (3.4)

6. After the creation is complete, there is a file structure such as the following:

7. The files in Localizable.strings are ": Key = Type of value

Localizable.strings (ENLIGSH): "Test" = "test";

Localizable.strings (Chinese (simplied)) "Test" = "testing";

8. The infoplist.strings file is the modified name: Pdoucht name

Infoplist.strings (中文版): Cfbundledisplayname= "中文版";

Infoplist.strings (Chinese (simplied)): Cfbundledisplayname= "Chinese";

9. There is another place to modify: Info.plist file

Important step: To remove the product name inside; Also add an attribute to Info.plist: Bundle Display name = $ (prdouc_name)

10. The final test will be successful!! Hope to be useful to you!

Internationalized use in iOS (using steps after Xcode 6.0)

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.