José Matos <[EMAIL PROTECTED]> writes: > On Thursday 06 September 2007 14:11:08 Jean-Marc Lasgouttes wrote: >> BTW, rewriting the postats.sh script in python would be nice :) >> >> JMarc > > Like the attached script?
Looks great. There is a problem though: pegase: make i18n.inc (cd ../../1.5.x/po ; python ../../1.5.x/po/postats.py ../../1.5.x/po/ca.po ../../1.5.x/po/cs.po ../../1.5.x/po/de.po ../../1.5.x/po/es.po ../../1.5.x/po/eu.po ../../1.5.x/po/fi.po ../../1.5.x/po/fr.po ../../1.5.x/po/gl.po ../../1.5.x/po/he.po ../../1.5.x/po/hu.po ../../1.5.x/po/it.po ../../1.5.x/po/ja.po ../../1.5.x/po/ko.po ../../1.5.x/po/nb.po ../../1.5.x/po/nn.po ../../1.5.x/po/pl.po ../../1.5.x/po/pt.po ../../1.5.x/po/ro.po ../../1.5.x/po/tr.po ../../1.5.x/po/zh_CN.po ../../1.5.x/po/zh_TW.po) >i18n.inc Traceback (most recent call last): File "../../1.5.x/po/postats.py", line 123, in ? print """<?php File "../../1.5.x/po/postats.py", line 104, in run_msgfmt prop["translator"] = header['Last-Translator'].split('<')[0].strip().decode(charset,'xmlcharrefreplace').encode('ascii','xmlcharrefreplace') LookupError: unknown encoding: EUC-KR make: *** [i18n.inc] Error 1 pegase: python -V Python 2.3.4 JMarc