where in an XCode project does it set “InfoPlist.strings” as the filename to use for locationalization?

﹥>﹥吖頭↗ 提交于 2019-12-24 09:33:29

问题


where in an XCode project does it set "InfoPlist.strings" as the filename to use for locationalization?

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.

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"?


回答1:


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.

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.lprojfor dutch.



来源:https://stackoverflow.com/questions/8253197/where-in-an-xcode-project-does-it-set-infoplist-strings-as-the-filename-to-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!