IOS-App Localization

Source: Internet
Author: User

1. localizing the application name

2. Localizing Strings

3. Localized Images

4. localizing Xib and storyboard

1. localizing the application name

(1) Create a string file file named infoplist.strings

File->new

String File, Resource, IOS.

the file is named infoplist.strings

  

(2) add internationalized files.

Select the localizable.strings file, open the files Inspector, and Add the languages for the language you want to display. such as English --en, Simplified Chinese --chinese (zh-hans), Traditional Chinese -Chinese (zh-hans) and so on.

File Inspector

(3) writing internationalized document content

Simplified Chinese    cfbundledisplayname = " position ";

Traditional Chinese cfbundledisplayname = " location ";

  English cfbundledisplayname = "Location1";

Change The configuration xxxx-info.plist file, saying you need to add a property:application HASL Localized display name and set it to YES.

(4) using international language

Set the language in the iphone,

中文版: Program Name Location1

Simplified Chinese Program name location

Traditional Chinese Program name location

2. Localizing Strings

(1) Create a string file file named localizable.strings

File->new

String File, Resource, IOS.

the file is named localizable.strings

  

(2) add internationalized files.

Select the localizable.strings file, open the files Inspector, and Add the languages for the language you want to display. such as English --en, Simplified Chinese --chinese (zh-hans), Traditional Chinese -Chinese (zh-hans) and so on.

(3) writing internationalized document content

  中文版: "Place " = "American";

Simplified Chinese "Place " = " China ";

Traditional Chinese "place" = " Hong Kong ";

(4) using international language

Use: nsstring *place = nslocalizedstring(@ "Place", nil);

3. Localized Images

(1) Select the picture,xcode-> view-> Utilities, File Inspector, in the Localization midpoint "+" Add Chinese (zh-Hans); a inverted triangle appears to the left of the picture.

  

(2) Open the File Inspector and Add the language you want to display. such as English --en, Simplified Chinese --chinese (zh-hans), Traditional Chinese -Chinese (zh-hans) and so on.

    

(3) en.lproj file is stored in the English version of the picture,zh-hans.lproj Store is the Chinese version of the picture, in English and Chinese pictures of the same name, Normal use is OK.

IOS-App Localization

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.