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