Iphone XCode-多个目标,多个*国际化*名称?
我有一个国际化的iPhone项目。在各种Iphone XCode-多个目标,多个*国际化*名称?,iphone,xcode,sdk,internationalization,Iphone,Xcode,Sdk,Internationalization,我有一个国际化的iPhone项目。在各种${lang}.lproj/InfoPlist.strings文件中,我有一个单键,CFBundleName=“我的应用程序名” 这对单个目标来说很好,但我不能让它对多个目标起作用 我想为主要目标提供几个翻译的InfoPlistMyApp.strings文件,以及lite版本的几个InfoPlistMyAppLite.strings文件。但我不知道如何设置它。InfoPlist.strings名称似乎是一成不变的,因此我无法动态替换它 有什么想法吗?事实证
${lang}.lproj/InfoPlist.strings
文件中,我有一个单键,CFBundleName=“我的应用程序名”
这对单个目标来说很好,但我不能让它对多个目标起作用
我想为主要目标提供几个翻译的InfoPlistMyApp.strings
文件,以及lite版本的几个InfoPlistMyAppLite.strings
文件。但我不知道如何设置它。InfoPlist.strings
名称似乎是一成不变的,因此我无法动态替换它
有什么想法吗?事实证明,这很容易,尽管很费劲。您可以有多个InfoPlist.String,每个目标启用一个,并且每个都可以国际化,只要每个集合位于不同的Xcode组中 设置如下目录结构:
.../AppName/
en.lproj/InfoPlist.strings <-- Contains CFBundleDisplayName
it.lproj/InfoPlist.strings <-- ...
...
.../AppNameLite/
en.lproj/InfoPlist.strings <-- ...
it.lproj/InfoPlist.strings <-- ...
...
../AppName/
en.lproj/InfoPlist.strings