“本地化本地开发区域”是什么意思?在info.plist中输入? [英] What is the meaning of "Localization native development region" entry in info.plist?

查看:349
本文介绍了“本地化本地开发区域”是什么意思?在info.plist中输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我是否真的理解了info.plist文件中本地化本机开发区域条目的功能。

I don't know if I really understood the function of the "Localization native development region" entry in info.plist file.

某处我读到了这个条目允许在没有与语言资源目录匹配时指定应用程序语言。

Somewhere I read that this entry allows to specify the app language when there is no matching with a language resource dir.

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

I have an app localized in three languages: english, italian and spanish (en.lproj, it.lproj and es.lproj) and I set "Localization native development region" entry to Italy. When I change the language and locale in "Settings" (for example by chosing the arabic language and a proper region), the app language is english. Shouldn't be it italian as I set "Localization native development region" to Italy in the info.plist?

任何想法?它可以绑定到AppStore应用程序描述语言吗?

Any ideas? Could it be tied to the AppStore app description language?

推荐答案

来自CFBundle文档:

From the CFBundle documentation:


kCFBundleDevelopmentRegionKey
捆绑包的开发语言的名称。
当CFBundle查找资源时,后备是查看lproj,其名称由Info.plist文件中的kCFBundleDevelopmentRegionKey给出。因此,您必须确保包中包含具有包含每个本地化资源副本的确切名称的lproj,否则CFBundle无法保证回退机制将起作用。
适用于iOS 2.0及更高版本。
在CFBundle.h中声明。

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描述语言无关。

No relation to the AppStore Description language.

这篇关于“本地化本地开发区域”是什么意思?在info.plist中输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆