【发布时间】:2011-12-12 18:23:06
【问题描述】:
我在我的项目中使用 SORelativeDateTransformer。
我本地化了我的项目(翻译了故事板并创建了 Localizable.strings(我使用了 NSLocalizedString)),这部分翻译完美。
问题是 SORelativeDateTransformer 使用它自己的 SORelativeDateTransformer.strings(使用 NSLocalizedStringFromTable), 在演示中有效,但在我的项目中无效。
更新:还发现我翻译成挪威语本地化的一些标签保留了英文单词。啊!
有什么想法吗?
【问题讨论】:
-
您找到解决方案了吗?
-
感谢您回复我。您现在正在使用的任何其他库,我可以使用吗?
-
@saintjab 很抱歉没有提供帮助。不,我记得我只是将字符串从 SORelativeDateTransformer.strings 复制到 Localizable.strings 并用 NSLocalizedString 替换了该项目中的所有 NSLocalizedStringFromTable 调用。
-
我刚刚根据我的做法发布了一个更新作为答案。感谢您的帮助。
标签: localization xcode4.2 nslocalizedstring localizable.strings