本地化字符串文件不适用于Xcode 5中的Xib [英] Localization strings file not working with xib in Xcode 5

查看:88
本文介绍了本地化字符串文件不适用于Xcode 5中的Xib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有以下用于本地化的文件结构.

I have the following file structure for localization.

A.xib

-> A.xib(基本)

->A.xib (Base)

-> A.strings(西班牙语)

->A.strings (Spanish)

-> A.strings(英语)

->A.strings (English)

因为它是使用基础国际化".我们可以预期只有一个xib文件和所需的字符串文件用于本地化.

Since it is "Use Base Internationalization". We can expect to have only one xib file and required strings file for the localization.

但是,一旦我将此字符串文件转换为.xib(每种语言都有.xib文件.在Base Internationalization之前就是这种情况).事情开始在iOS模拟器上运行,并且设备对这些更改做出响应.

But, soon as i convert this strings file to .xib (where for each language we have .xib file. This was the case before Base Internationalization). Things start working the iOS simulator and device responds to such changes.

注意:-我还尝试过重置模拟器,清理并创建了构建,但没有成功.

Note:- I had also tried to reset the simulator , clean and created the build but no success.

当我使用.strings文件进行本地化时,不知道为什么本地化会失败.

Don't know why localization fails when I use .strings file for localization.

任何帮助我们都感激的小错误会占用Xcode IDE上更多的时间并消耗开发时间.

Any help appreciated for a , small bug consuming more time on Xcode IDE and eating up development time.

推荐答案

这是Xcode中的错误. 您所要做的就是将Localizable Strings文件转换为Interface Builder文件. 您可以在界面生成器的文件属性的本地化"部分下进行此操作.

It's a bug in Xcode. All you have to do is to convert the Localizable Strings file to an Interface Builder file. You can do that under the Localization section on the interface builder's file properties.

这篇关于本地化字符串文件不适用于Xcode 5中的Xib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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