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