iPhone - 支持多种语言,但捆绑包中仅包含一种语言
我想在 Xcode 中为多种语言开发应用程序。所以我有针对这些语言的本地化资源。但这是否可以从最终捆绑包中删除所有本地化资源,而只保留一种语言?
例如:我开发德语和英语应用程序,但我只想使用 German.lproj 构建捆绑包,而不使用 English.lproj。我想这样做,因为我的资源文件非常大,并且我不想在德语版本中包含例如英语图像。
我尝试从捆绑包中删除 English.lproj,但随后我无法在我的设备上安装应用程序,因为消息是资源已被修改(这是完全正确的)。我认为该捆绑包已签名或类似的东西。
I want to develop application in Xcode for many languages. So I have resources localized for those languages. But is this possible to remove from final bundle all localized resources, and left them only for one language?
For example: I develop application for German and English language, but I want to build the bundle only with German.lproj, and without English.lproj. I want to to this, because my resource files are quite big, and I don't want to include for example English images in German version.
I've tried to remove English.lproj from bundle, but then I cannot install application on my device, because the message is that the resources have been modified (which is quite true). I think that bundle is signed or something like that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想为不同的语言创建多个目标。将资源保留在项目中。创建一个新目标。从新目标中删除(或不添加)这些资源。
You want to create multiple targets for your different languages. Keep the resources in the project. Create a new target. Remove (or don't add) those resources from the new target.