解析Cocoapod破坏了本地化 [英] Parse Cocoapod breaks localization

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

问题描述

在一个iOS项目中,今天早上我更新了自己的广告连播,以添加一个新的连播. Parse iOS SDK也已在此过程中进行了更新,它似乎就像它破坏了我的应用程序的本地化一样.

In an iOS project, I've updated this morning my pods to add a new one. The Parse iOS SDK also got updated in the process, and it seems like it broke my app's localization.

现在,当我尝试呼叫NSLocalizedString(@"A_LOCALIZED_STRING", nil)时,总是得到@"A_LOCALIZED_STRING"作为回报.

Now, when I try to call NSLocalizedString(@"A_LOCALIZED_STRING", nil), I always get @"A_LOCALIZED_STRING" in return.

即使我将NSLocalizedString的较长版本与特定捆绑包(此处为[NSBundle mainBundle])一起使用,也会得到相同的结果.

Even if I use the longer version of NSLocalizedString with a specific bundle (here, [NSBundle mainBundle]), I get the same results.

我注意到,唯一被正确本地化的字符串是字符串@"OK",它恰好是Parse SDK的Localizable.strings文件中指定的唯一字符串.

I've noticed that the only string that gets localized properly is the string @"OK", which precisely is the only string specified in Parse SDK's Localizable.strings file.

我的解释是,此Pod的Localizable.strings在某种程度上覆盖了我自己的.那有可能吗?如何解决这个问题?

My interpretation is that this pod's Localizable.strings is somewhat overriding my own. Is that even possible? How to workaround this?

谢谢!

(我还必须添加项目中的本地化功能,直到现在,它都可以正常工作,所以这不是第一次配置问题.)

(I must also add that localization in my project used to work flawlessly until now, so it's not a first-time configuration problem.)

推荐答案

我认为他们刚刚实现了修复(1.8.0.1).

I think they just realeased a fix (1.8.0.1).

您必须:

  1. 更新您的广告连播:pod update
  2. 使用Xcode清理项目:Cmd + K
  3. 清理项目文件夹:Cmd + Shift + K
  4. 从设备/模拟器中删除应用
  5. 运行您的项目
  1. Update your pods : pod update
  2. Clean your project in Xcode : Cmd + K
  3. Clean your project folder : Cmd + Shift + K
  4. Remove the app from the device / simulators
  5. Run your project

是的,谢谢Parse,我们很高兴能花半天的时间来解决您出现的问题,只需将最没用的单词之一本地化即可,"OK".

Yes, thank's Parse, we're really glad to loose half a day to solve the problem your made appear just by localizing one of the most useless word to localize, "OK".

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

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