Hi!
I have problem fixing a bug in a .po-file:

Importing goes fine. However, there seems to be a bug in the translation (in the poll). So, I opened .po-file and changed one %-mark to @-mark (I'm guessing that it should fix the bug, my guess is based on http://drupal.org/node/146520 ). When I trie to import the modified .po-file, Drupal gives me an error:

# The translation file fi.po contains a syntax error on line 1.
# The translation import of fi.po failed.

Why I get the error?

The translation is finnish translation and the part of the file I am modifying is here:

#: modules/poll/poll.module:336;414
msgid "1 vote"
msgid_plural "@count votes"
msgstr[0] "1 ääni"
msgstr[1] "@count ääntä"

Comments

Gábor Hojtsy’s picture

You probably edited the file with an editor which adds the Unicode Byte Order Mark (known a BOM for short), which is a few extra bytes at the beginning of the files. These should not be there, so set your editor to not add these and resave the file.