德语本地化字符串
我正在使用 Localized.string 将应用程序本地化为德语。 一切顺利,直到我需要在本地化字符串中使用 ü 或 ß 类型的字母。
我在构建时遇到错误。
de.lproj/Localizable.strings:0: error: validation failed: The data couldn’t be read because it has been corrupted.
例子;
“简单介绍和字母表”=“Einfache Begrüßungen und das Aphabet”;
有人有解决方案吗? 谢谢
I am localizing an app into German using Localizable.string.
All well until I need to use a ü or ß type letter in the localized string.
I get an error when building.
de.lproj/Localizable.strings:0: error: validation failed: The data couldn’t be read because it has been corrupted.
Example;
"Simple introductions and alphabet" = "Einfache Begrüßungen und das Aphabet";
Anyone out there with a solution?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就我而言,其他答案都没有解决我的问题。在花了一些时间寻求帮助后,我不知何故注意到我忘记了行尾的分号。
诚然,这对我来说是一个非常基本的错误,但编译器可以告诉我我的错误,而不是:
所以请记住,字符串表文件必须采用以下格式
In my case neither of the other answers fixed my problem. After spending some time with searching for help, I somehow noticed I forgot a semicolon on the end of a line.
Admittedly this is a really basic error on my behalf, but the compiler could have told me my mistake instead of:
So remember that strings table files have to be in the format
经过评论讨论,问题解决了。
如果您遇到类似的问题,那么首先您应该检查发生错误的文件的文本编码。您可以找到当前的文本编码并在
Xcode
中更改它:Text Encoding
Unicode (UTF-8)
After conversation in comments the problem was solved.
If you will have similar problem then first of all you should check text encoding of file where error occurred. You can find current text encoding and change it in
Xcode
:Text Encoding
Unicode (UTF-8)