I'm using a set of .po
files generated by the company translation system (with Pootle, if that's relevant). I'm having trouble converting these files to .mo
(the binary counterpart to .po
files) using the msgfmt
utility (with the -C
operator, which checks the format of the file), I get the following error:
$ msgfmt -v -C default.po
default.po:1:2: syntax error
msgfmt: found 1 fatal error
I've Googled pretty extensively for a way to get more information on what, exactly, is causing msgfmt
to throw this error.
I've also tried removing the first couple of lines of the file (which were not part of the catalog, but just comments or empty translation strings).
I'm inclined to think that it's a file encoding issue, but I've not dealt much with this type of thing, so I'm more than willing to admit that this is user error.
Does anybody know how I can more specifically diagnose the error with these files? Also, the same behavior is exhibited across all of the localized files, not just one specific file.