ios - info.plist 包显示名称本地化

标签 ios objective-c xcode swift localization

这方面的帖子很多,但似乎都是过时的方法?它似乎是使用 info.plist 并向其添加本地化完成的,然后为每种语言创建了更多 info.plist 文件。它似乎可以正常工作,但无论我使用哪种系统语言,它只会显示英文 Bundle 显示名称。不知道还需要做什么。我在模拟器和设备上都检查过了。

enter image description here

最佳答案

您需要创建“InfoPlist.strings”并在其中添加您想要支持的语言,然后为每种语言设置您的包名称和显示名称如下

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

如何启用本地化并为您的项目添加更多语言。

  1. Choose your project on the tree.
  2. 选择您的项目。
  3. 信息选项卡 -> 本地化。
  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.

关于ios - info.plist 包显示名称本地化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36675588/

相关文章:

iphone - 与 Objective-C 的 VPN 连接

ios - iOS 版 GCM 在不调试时不显示

ios - 设备无法识别此主机。尝试使用 iOS 7.1 的 iphone 4 时

ios - UITableView 方法被 TableView 大小覆盖

ios - Swift 编写一个带有返回值的 async/await 方法

ios - Xamarin Forms 中的 VNDocumentCameraViewController 卡住

ios - 如何在 viewDidLoad 方法中增加 UIView 的大小?

cocoa-touch - UIColor groupTableViewBackgroundColor是透明的

objective-c - 如何将 SEL 传递给 dispatch_async 方法

xcode - NSURLRequest 中的 HTTPMethod