Localization of IOS programming trivia

Source: Internet
Author: User

1. Using localized multi-language

Sometimes, in the online download of the demo, there is localized processing, the default localization is English, this time, you can consider the processing:

Info.plist->infomation Property List, Localization native Development->china

2. Configure multi-lingual systems

Of course, if you are to configure multiple languages, it is another knowledge point. The steps are as follows:

2.1. Add a new language support

XCode Click [Project name]->project->info->localizations, then add the language.

2.2. Create localizable

Terminal, switch to project directory, input "genstrings./" project name "/*.m", will be in the. m file in the need for a multi-lingual part of the extraction. The part that requires multiple languages refers to the use of

Nslocalizedstring (@ "key", @ "[note]") place.

2.3. Add multiple languages

Add the localizable.strings generated above to the project. At this point, it is just a file and cannot be configured with multiple languages. Then, one more step, select the Localizable.strings file, there is a "Localization" in the attribute, you can add the corresponding language version. Then, under Localizable.strings, several corresponding files are generated and can be modified.

2.4. Apply name Multi-language 2.4.1. Create a Infoplist.strings file

"New File", select Resource, "String file" for iOS. Create this file, named "Infoplist" (this must be the file name). Then the steps are like 2.3.

2.4.2. Changing information

Enter "Cfbundledisplayname" = "app name" in Infoplist.strings

  

Localization of IOS programming trivia

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.