IOS Learning Note Six "international multi-lingual processing of text and app names in the app"

Source: Internet
Author: User

Today for beginners to solve the app under the Word and app name of the international multi-language processing,

Not much to say, directly on the steps:

1, open your project, stand-alone project name, select Project, directly look at the picture bar:

2. Create a localizable.strings file

(the name must be: "Localizable.strings") (change the International app name step, "Infoplist.strings")

After the creation of the name: Now you may not have the left side of the triangle, wait for it, don't hurry ha!

3, look at the picture, find the way location: Add on the line, you can not base,

4, add to see the black triangle on the left, the next step is to fill in the internationalization of the text processing, look at the picture bar:

(title = "Boai";) (title = "Fraternity";) (change the International app name the same step, Cfbundledisplayname = "Bawechat"; )

5, to here, it is the last and the most critical step! Open your eyes, huh!

Internationalization of the app name on the previous step has been set up, you can casually change the app name, can be in front of the goddess every day to pack 13!

Write this in places where you need to set up internationalized text:

self.title = nslocalizedstring (@ "title", nil); nslocalizedstring (parameter 1, parameter 2): Parameter 1 is the name you defined earlier, I define the title, here is the title, parameter 2 can not write, straight to nil on the line!

6, the workpiece into! Haha, look at the app name on the tall:

Chinese language display on mobile:

Simulator English name display:

7, you can enjoy the 13! Ha ha!

If you have any questions, you can contact me:

Sina Weibo: @ Fraternity 1616

qq:137361770

GitHub Demo Address:https://github.com/boai/BADemoTest

IOS Learning Note Six "international multi-lingual processing of text and app names in the app"

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.