How iOS app names support localization

Source: Internet
Author: User

1. Right-click to create a new infoplist. String file, right-click to create a newfile, and then select resource, and then select string files to create a string file.


2. Next, you will find that you have selected this file. Right-click the file and you will see it in the property. After localize, you can only create one localization of English ,:

After searching for half a day, I don't know where to add other localization files, because they generally look like the following:

 


3. It is found later that there is a localizations place In the info column set in the project. There can be a plus sign (+) and a minus sign (-). The correlation is as follows:




Zh-Hans indicates simplified, and ZH-HANT indicates traditional.

Select the language in the list to create a localized file for the response.

4. The file content is generally as follows:

/*

Infoplist. Strings

Treasure

Created by Tan gaowen on 13-5-2.

English app name

*/

"Cfbundledisplayname ~ IPhone "=" treasure ";

"Cfbundledisplayname ~ IPod "=" treasure ";

"Cfbundledisplayname ~ IPad "=" Treasure HD ";


The system will automatically read the data, and no other settings are required. You only need to ensure that the string file name is infoplist. String.

Okay. In the test, we found that by setting "Settings" in the simulator to various languages, we can correctly change the name of the installed app according to the content of the string file.


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.