wichert / lingua

Translation toolkit for Python
Other
46 stars 33 forks source link

Gracefully handle undeclared namespaces #3

Closed wichert closed 13 years ago

wichert commented 13 years ago

If a XML file uses an undefined namespace the lingua XML extractor silently ignores it. For example:

<div xmlns:i18n="http://xml.zope.org/namespaces/i18n"
     i18n:domain="voipro.portal">
    <p tal:condition="has_title" i18n:translate="">Hello, world!</p>
</div>

Note how the tal namespace is not defined.