简体   繁体   中英

info.plist bundle display name localization

There are a lot of posts on this but all seem to be an out of date method? It seems its done using info.plist and adding localization to it and then more info.plist files are created within for each language. It seems to be working but only ever displays the English Bundle display name no matter what system language I use. Not sure what else needs to be done. I checked it on both the simulator and a device.

在此处输入图片说明

you need to create "InfoPlist.strings" and add languages which you want to support there, then set your bundle name and display name as the following for each language

"CFBundleDisplayName" = "App Name";
"CFBundleName" = "App Name";

How to enable Localization and add more language to your project.

  1. Choose your project on the tree.
  2. Choose your project.
  3. Info Tab -> Localizations.
  4. Choose which language you want to support.

then on your strings file, when you choose it, on right side you can find which languages you want to support into this strings file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM