I'm trying to include the internationalization of my application, and only for testing purposes I added a simple line in the file Localizable.string.
This is my whole file:
"Test locale" = "Test locale"
And when I try run my application I get this error:
Localizable.strings:0: error: validation failed: The data couldn’t be read because it has been corrupted.
I've tried changing the "Text Encoding" to UTF-16 but nothing resolved.
Any ideia?
Thanks in advance.
You can verify your Localizable.strings file with this script:
https://github.com/dcordero/Rubustrings
If this is your whole file, add a semicolon at the end. Change it to:
I've made a little script to check whole folders .strings files using plutil.
https://github.com/CarlesEstevadeordal/check_strings
In my case it was brackets inside string — I needed to add slash before \".
In my case, it was like this:
(Notice the ' = ; ' instead of ' = ' at the end of the first line)
Hope it helps someone...
To get more detailed informations you can use the Property List utility from the command line:
the
-lint
switch is for checking the syntax. If you have an error you'll get line number and more informations, and in general better directions on how to fix the issue.