ParseUI的本地化 [英] Localization of ParseUI

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

问题描述

由于ParseUI是开放源代码,因此很容易发现所有标签都位于ParseUI.strings中

Since ParseUI is Open Source it is easy to find that all labels are localized in ParseUI.strings

如何告诉xcode在运行时不要使用ParseUI.strings,而要使用Localisable.strings?

How can I tell xcode not to use ParseUI.strings at runtime but my Localisable.strings?

我在项目中创建了以下结构:

I have created the following structure in my project:

但是我可以在调试器文件中看到我的Localisable.strings没有被使用:

But I can see in the debugger file that my Localisable.strings are not used:

2015-05-17 22:27:17.711 CoreParse [3582:216694]在捆绑包CFBundle 0x7f9d93455640的字符串表"ParseUI"中找不到可本地化的字符串正在加载..."(可执行,已加载) . 2015-05-17 22:27:17.784 CoreParse [3582:216694]在捆绑包CFBundle 0x7f9d93455640的字符串表"ParseUI"中找不到本地化字符串用户名"(可执行,已加载). 2015-05-17 22:27:17.784 CoreParse [3582:216694]在捆绑包CFBundle 0x7f9d93455640的字符串表"ParseUI"(可执行文件,已加载)中找不到可本地化的字符串"Password".

2015-05-17 22:27:17.711 CoreParse[3582:216694] Localizable string "Loading..." not found in strings table "ParseUI" of bundle CFBundle 0x7f9d93455640 (executable, loaded). 2015-05-17 22:27:17.784 CoreParse[3582:216694] Localizable string "Username" not found in strings table "ParseUI" of bundle CFBundle 0x7f9d93455640 (executable, loaded). 2015-05-17 22:27:17.784 CoreParse[3582:216694] Localizable string "Password" not found in strings table "ParseUI" of bundle CFBundle 0x7f9d93455640 (executable, loaded).

推荐答案

我刚刚遇到了同样的问题.但是我发现您可以在项目中创建一个名为"ParseUI.strings"的本地化字符串文件并将其本地化,然后ParseUI模块将从该文件中读取本地化的字符串.

I have just faced the same problem. But I found that you can create a localized string file named "ParseUI.strings" in your project and localise it, the ParseUI module will then read the localised string from that file.

本地化String中的内容(来自ParseUI的github链接): https://github.com /ParsePlatform/ParseUI-iOS/raw/master/ParseUI/Resources/Localization/en.lproj/ParseUI.strings

Contents in the localized String (github link from ParseUI): https://github.com/ParsePlatform/ParseUI-iOS/raw/master/ParseUI/Resources/Localization/en.lproj/ParseUI.strings

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

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