Re: No xml2po on window



Hi guys,

We need Python 2.3 for xml2po (since semantics of gettext.ugettext has
changed between 2.2 and 2.3). 

http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html


Данас у 14:40, Murray Cumming написа:

> Thanks. Is there maybe something odd about the installed python, or
> maybe we need a newer python (only python 2.2 is installed)? xml2po is
> giving me this traceback:
>
> Traceback (most recent call last):
>   File "/usr/bin/xml2po", line 717, in ?
>     doSerialize(doc)
>   File "/usr/bin/xml2po", line 482, in doSerialize
>     outtxt += doSerialize(child)
>   File "/usr/bin/xml2po", line 476, in doSerialize
>     (starttag, content, endtag, translation) = processElementTag(node,
> repl, 1)
>   File "/usr/bin/xml2po", line 395, in processElementTag
>     myrepl.append(processElementTag(child, myrepl, 1))
>   File "/usr/bin/xml2po", line 407, in processElementTag
>     translation = getTranslation(outtxt, isSpacePreserveNode(node))
>   File "/usr/bin/xml2po", line 223, in getTranslation
>     return gt.ugettext(text.decode('utf-8'))
>   File "/usr/lib/python2.2/gettext.py", line 202, in ugettext
>     return unicode(tmsg, self._charset)
> TypeError: decoding Unicode is not supported



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]