GNOME Bugzilla – Bug 334256
cvs fails to build -- 'list' object has no attribute 'split'
Last modified: 2006-03-11 23:20:37 UTC
Looks like the spanish translation borks the build: Making all in gnome2-user-guide /export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide make[1]: Entering directory `/export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide' if ! test -d es/; then mkdir es/; fi case "." in /*) sd=".";; *) sd="../.";; esac; \ if [ -f "C/user-guide.xml" ]; then d="../"; else d="$sd/"; fi; \ (cd es/ && \ `which xml2po` -e -p \ "${d}es/es.po" \ "${d}C/user-guide.xml" > user-guide.xml.tmp && \ cp user-guide.xml.tmp user-guide.xml && rm -f user-guide.xml.tmp) /export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide/es Traceback (most recent call last):
+ Trace 66859
doSerialize(doc)
outtxt += doSerialize(child)
(starttag, content, endtag, translation) = processElementTag(node, repl, 1)
myrepl.append(processElementTag(child, myrepl, 1))
translation = getTranslation(outtxt, isSpacePreserveNode(node))
gt = gettext.GNUTranslations(file)
self._parse(fp)
v = v.split(';')
make[1]: *** [es/user-guide.xml] Error 1 make[1]: Leaving directory `/export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide'
I'm disabling spanish translations for now to get past this. I actually just ran into this too.
Created attachment 61106 [details] [review] Remove plural forms header from es.po Ugh, this is a Python gettext.py bug. The problem is with Plural-Forms header. Simply removing it from PO file should work, eg. I'm attaching a patch for es.po.
Created attachment 61107 [details] [review] Fix for gettext.py This is a fix for gettext.py that fixes things. I'll submit it upstream. I may even consider including gettext.py in xml2po instead.
Python bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1448060&group_id=5470&atid=105470