if [ -f "C/legal.xml" ]; then d="../"; else d="$sd/"; fi; \ (cd zh_CN/ && \ `which xml2po` -e -p \ "${d}zh_CN/zh_CN.po" \ "${d}C/legal.xml" > legal.xml.tmp && \ cp legal.xml.tmp legal.xml && rm -f legal.xml.tmp) if ! test -d zh_HK/; then mkdir zh_HK/; fi case "." in /*) sd=".";; *) sd="../.";; esac; \ if [ -f "C/legal.xml" ]; then d="../"; else d="$sd/"; fi; \ (cd zh_HK/ && \ `which xml2po` -e -p \ "${d}zh_HK/zh_HK.po" \ "${d}C/legal.xml" > legal.xml.tmp && \ cp legal.xml.tmp legal.xml && rm -f legal.xml.tmp) Traceback (most recent call last): File "/usr/bin/xml2po", line 800, in ? doSerialize(doc) File "/usr/bin/xml2po", line 551, in doSerialize outtxt += doSerialize(child) File "/usr/bin/xml2po", line 545, in doSerialize (starttag, content, endtag, translation) = processElementTag(node, repl, 1) File "/usr/bin/xml2po", line 462, in processElementTag (starttag, content, endtag, translation) = processElementTag(child, myrepl, 0) File "/usr/bin/xml2po", line 458, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 458, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 458, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 458, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 458, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 470, in processElementTag translation = getTranslation(outtxt, isSpacePreserveNode(node)) File "/usr/bin/xml2po", line 248, in getTranslation gt = gettext.GNUTranslations(file) File "/usr/lib/python2.4/gettext.py", line 177, in __init__ self._parse(fp) File "/usr/lib/python2.4/gettext.py", line 260, in _parse magic = unpack(' None