Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localizable.strings causing plist parsing error

I have just localized the file Localizable.strings in my Xcode project in order to localise my application to a few different languages. However, having edited each of the files in the standard "key = value" format, I receive the following parsing error, which does not specify a file making it hard to track down what it is referring to.

CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 10. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.

I have looked through each of the *.strings files, specifically on line 10, and I found nothing of any interest or regards as to what is causing the issue. Please can you tell me where I am going wrong.

Here is a sample of a Localizable.strings file in my project. All other files follow the same format.

"Enter URL" = "Voer adres in"
"Headers" = "Koppen"
"Key" = "sleutel"
"Value" = "waarde"
"Parameters" = "Parameters"
"Tap to add a new line" = "Tik om een nieuwe lijn toe te voegen"
"Perform request" = "Verzoek Uitvoeren"
"Response" = "Antwoord"
"Received Headers" = "Ontvangen Koppen"
"Error" = "Fout"
"Loading" = "Verzoek aan het versturen"

I then use NSLocalizedString() to provide the translated string.

like image 680
max_ Avatar asked Mar 26 '13 21:03

max_


1 Answers

As stated in the error message, you're missing semicolons at the end of each line.

"foo" = "bar";

Is the correct format

like image 103
Keith Smiley Avatar answered Oct 21 '22 17:10

Keith Smiley