Xcode 6不会本地化Interface Builder [英] Xcode 6 does not localize Interface Builder

查看:113
本文介绍了Xcode 6不会本地化Interface Builder的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 6 Beta 4

我在项目中使用本地化,并且我有从Xcode 5本地化的经验。

I use localization in my project and I have experience in localization from Xcode 5.

使用 NSLocalizedString()在程序代码中进行本地化工作正常。
Info.plist的本地化字符串也可以正常工作。

Localization in program code using NSLocalizedString() works fine. Localization of Info.plist strings work fine, too.

当局化字符串时来自Interface Builder它只能在 Interface Builder 预览中使用,但不能在模拟器中使用,而不能在我的设备上运行(iPhone 5S)。

When it comes to localize the strings from Interface Builder it only works in Interface Builder preview but not in simulator and not on my device (iPhone 5S).

我错过了什么或者任何人都可以在Xcode 6 Beta 4中确认这是一个错误?

Am I missing something or can anyone confirm this as a bug in in Xcode 6 Beta 4?

推荐答案

Apple的XCode 6 GM发行说明涵盖了:

Apple release notes of XCode 6 GM covers this :


本地化:
如果满足以下三个条件,则故事板或XIB将无法正确本地化:
故事板或XIB使用大小类。
基本本地化和构建目标设置为Universal。
构建目标是iOS 7.0。

Localization: A storyboard or XIB will not localize correctly if all of the following three conditions are true: The storyboard or XIB uses size classes. The base localization and the build target are set to Universal. The build targets iOS 7.0.

这篇关于Xcode 6不会本地化Interface Builder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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