GNOME Bugzilla – Bug 514480
xml2po ignores tags containing CDATA
Last modified: 2020-03-03 18:36:20 UTC
We wish to convert our xml data to .po to use on pootle. It works well except for tags with CDATA xml2po -m empty -e -o workgroup.po workgroup Kind Regards Stephen Sample <entry> <base>FORM_TITLE</base> <trans>Change workgroup settings</trans> </entry> <entry> <base>DESC_WORKGROUP</base> <trans> <![CDATA[ Enter the name of the Windows workgroup. ]]> </trans> </entry> <entry> <base>LABEL_WORKGROUP</base> <trans>Windows workgroup</trans> </entry> #: workgroup:6(trans) #, no-wrap msgid "Change workgroup settings" msgstr "" #: workgroup:18(trans) #, no-wrap msgid "Windows workgroup" msgstr ""
Initial reply from Danilo >It seems the problem is with libxml2 not handling cdata properly. It >provides an isText() method which returns 0 for cdata nodes.
Should work with the partial xml2po rewrite waiting on #597216.
gnome-doc-utils has been superseded by yelp-xsl, yelp-tools, and itstool. gnome-doc-utils will not see any further development, hence closing as WONTFIX. See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/255