gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 07:46:43 25 4
gpt4 key购买 nike

不知道我是否真的理解了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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com