NSLocalizedString 在某些键查找上失败。 .Strings 文件损坏?
我目前正在致力于 iPhone 应用程序的本地化。
我有一个构建目标 pr。国家和几个 .Strings 文件。国家。 每个国家/地区至少有 3 种与其相关的语言。
我的问题是,在某些语言中,某些查找会无故失败。 哪些查找失败似乎也是随机的。尽管每次都失败的是相同的字符串。
我怀疑某种 .Strings 文件损坏。
是否有任何工具可以检查这些文件的完整性,或者我可以查找一些常见的损坏原因。
附加信息:
- 文件为 UTF-8 格式
- 99% 的键查找均有效。
- 更改查找的键名不起作用。
- 我已经仔细检查过我正在正确的包中查找密钥。
非常感谢任何帮助,因为截止日期将在不到一周的时间内到来。
I´m currently working on localizing an iPhone application.
I have one build target pr. country, and several .Strings files pr. country.
Each country has a minimum of 3 languages tied to it.
My problem is that certain lookups fail without reason in some languages.
Which lookups fail seem to be random too. Although it´s the same strings that fail every time.
I suspect some kind of .Strings file corruption.
Is there any tool for checking integrity of these files, or some common causes of corruption that I could look for.
Additional info:
- Files are UTF-8 format
- Lookup for 99% of keys work.
- Changing key-name for the lookup does not work.
- I have double checked that I´m looking up the key in the right bundle.
Any help is greatly appreciated as deadline looms in less than a week.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文件中很可能包含无效的 UTF-8。在 BBEdit 中打开它,看看它是否给您任何警告。
Most likely you have invalid UTF-8 in the file. Open it in BBEdit and see if it gives you any warnings.