问题描述
它在XCode项目的哪里将"InfoPlist.strings"设置为用于定位的文件名?
where in an XCode project does it set "InfoPlist.strings" as the filename to use for locationalization?
只是想了解XCode在这里是如何将事物组合在一起的.例如,要专门设置应用程序名称,可以在"AppName_plist-Info.plist"中进行更改,但是,如果我进行本地化,则似乎必须通过"InfoPlist.strings"文件进行设置.
Just trying to understand how XCode pulls things together here. For example to set the app name specifically I can change this in "AppName_plist-Info.plist", however if I go localization it seems it then has to be set via the "InfoPlist.strings" files.
我可以在XCode的Target/BuildSettings/Packaging信息区域中看到在其中指定"AppName_plist-Info.plist"文件名的地方,但是我看不到提及"InfoPlist.strings",所以Xcode怎么做/IOS知道基于"InfoPlist.strings"中的内容来覆盖"AppName_plist-Info.plist"中的内容?
I can see in XCode where it specifies the "AppName_plist-Info.plist" file name, in the Target/BuildSettings/Packaging information area, but I don't see mention of "InfoPlist.strings", so how does Xcode/IOS know to override what is in "AppName_plist-Info.plist" based on what's in "InfoPlist.strings"?
推荐答案
Xcode并没有真正覆盖名称,而是在您的应用程序捆绑包中创建了本地化版本. iOS会在设置了系统语言的de localization文件夹中查找应用程序的名称.
Xcode doesn't really override the name, it creates localizations in your apps bundle. iOS will look for the name of the app in de localization folder to which the language of the system is set.
这些文件具有预先确定的名称,因此您无法设置它们.所有本地化的文件都将以bundle.app\en.lproj
(对于英语)或bundle.app\nl.lproj
(对于荷兰语)为例.
These files have pre-determent names, thus you can not set them.All the localized files will be for example in bundle.app\en.lproj
for english or bundle.app\nl.lproj
for dutch.
这篇关于它在XCode项目中的哪个位置设置"InfoPlist.strings"?作为用于定位的文件名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!