[pology] pomtrans unable to handle Norwegian .pot file?
Petter Reinholdtsen
pere at hungry.com
Mon Mar 12 06:35:26 PDT 2012
I just built pology 0.10 on my Debian Squeeze machine, and tried to
use its pomtrans tool to translate from Norwegian Bokmål to Norwegian
Nynorsk. This failed with the following error:
% pomtrans -s nb -t nn apertium itil.nn.po
Traceback (most recent call last):
File "/usr/bin/pomtrans", line 495, in <module>
exit_on_exception(main)
File "/usr/lib/pymodules/python2.6/pology/fsops.py", line 1003, in exit_on_exception
error(unicode(e), code=1)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128)
%
the source (msgid) strings are UTF-8, but this is stated in the file
header, and I expected pomtrans to work also with non-english
originals. Am I wrong? Is there some simple fix for this issue?
The error message do not tell me enough to guess which part of the .po
file is the problem. Any idea how to figure that out?
--
Happy hacking
Petter Reinholdtsen
More information about the pology
mailing list