ios - info.plist 中的 "Localization native development region"条目是什么意思?

标签 ios info.plist

不知道我是否真的理解了info.plist文件中“Localization native development region”入口的作用。

我在某处读到此条目允许在与语言资源目录不匹配时指定应用程序语言。

我有一个本地化为三种语言的应用程序:英语、意大利语和西类牙语(en.lproj、it.lproj 和 es.lproj),我将“本地化原生开发区域”条目设置为意大利。当我在“设置”中更改语言和区域设置时(例如通过选择阿拉伯语和适当的区域),应用程序语言是英语。不应该是意大利语,因为我在 info.plist 中将“Localization native development region”设置为 Italy?

有什么想法吗?它可以与 AppStore 应用程序描述语言相关联吗?

最佳答案

来自 CFBundle 文档:

kCFBundleDevelopmentRegionKey The name of the development language of the bundle. When CFBundle looks for resources, the fallback is to look in the lproj whose name is given by the kCFBundleDevelopmentRegionKey in the Info.plist file. You must, therefore, ensure that a bundle contains an lproj with that exact name containing a copy of every localized resource, otherwise CFBundle cannot guarantee the fallback mechanism will work. Available in iOS 2.0 and later. Declared in CFBundle.h.

与 AppStore 描述语言无关。

关于ios - info.plist 中的 "Localization native development region"条目是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5005236/

相关文章:

ios - 无法验证您的申请。该包不包含 info.plist

ios - NSPhotoLibraryUsageDescription key 必须存在于 Info.plist 中才能使用相机胶卷

ios - 应用被拒绝 : Systematic way to find (cocoapod) library that accesses privacy-sensitive data

swift - 使用 Swift 将自定义字体添加到 macOS 应用程序

macos - 注册一个 OS X 服务以接受无输入或 NSPasteboard 输入

ios - 为什么 UITableView 在从远程服务器加载更多行时自动调整行高 "scrolls up and then down"?

c# - Xamarin Studio Storyboard​​空白

android - 为什么我的网站的导航和顶部部分在平板电脑上推到了右侧?

ios - UITableView - 如何在滚动时不转储/重新加载单元格

ios - 在 iOS 订阅中,每天/每小时/等调用 verifyReceipt 的频率是否有限制?