Hi 2013/1/23 Shaun McCance <[email protected]>: > On Thu, 2013-01-17 at 14:04 +0100, Daniel Mustieles García wrote: >> Another check that should be implemented is the XML syntax check done >> in gtxml [1]. It checks the documentation PO files syntax, and is >> really useful to avoid errors in malfomed or wrong tags in doc files. >> >> [1] https://launchpad.net/pyg3t > > How does gtxml determine which strings have XML in them? Last April, > I asked on the gettext mailing list about adding a flag to identify > XML content, but got no response. > > http://lists.gnu.org/archive/html/bug-gettext/2012-04/msg00013.html > > -- > Shaun
Presently it's a very simple heuristic. It checks whether the English message looks like XML, by looking for the character '<' and checking if it is valid XML. If the English message fulfills those criteria and the translation isn't valid XML, then a warning is printed. Best regards Ask _______________________________________________ gnome-i18n mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-i18n
