localization, internationalization language settings for iOS development

Source: Internet
Author: User

Tag: INF log does not have CAL COM PNG localized image tin

Some characters of a localized app are also changed when the phone system language is switched. such as: In Simplified Chinese display "", in English environment display "WeChat".

1, switch the app name.

1.1. Add the required language

1.2. Create a string file. Special attention Required: The file name must be: infoplist.strings

1.3. Set the app display name. Key value pairs:cfbundledisplayname = "app name";

Set the name of the app to display in each locale.

When this setting is complete, the app's name will be toggled when the phone system language environment switches.

2.app characters inside the display.

2.1, set the language, set in 1.1, no longer need to set up again. (If you don't have the settings in 1.1, set it to 1.1 steps at a time).

2.2. Create a string file. Special attention Required: The file name must be:localizable.strings (Creation method same as 1.2)

2.3. Create the displayed key.

For example, set the title for the cell in your code. You need to set:nslocalizedstring (@ "setting", nil) key-value pairs.

NSString *title = nslocalizedstring (@ "setting", nil); [Cell.textlabel Settext:title];

2.4. Set the values that need to be displayed.

When this setting is complete, when the phone system language environment switch, the app has the characters set in the corresponding switch.

localization, internationalization language settings for iOS development

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.