diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-01-10 11:10:41 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-01-10 11:10:41 -0500 |
commit | 5495828ef2dafef0ae1f7b1a8957b4740d921dba (patch) | |
tree | 79b20a45a99149dc2849976a4f983c414be0ffa8 | |
parent | f924124a26377c22fe039cc413f5143b1ab6d263 (diff) | |
download | gnome-doc-utils-5495828ef2dafef0ae1f7b1a8957b4740d921dba.tar.gz |
xml2po/modes/mallard.py: Set @xml:lang on pages, bug #630053
-rw-r--r-- | xml2po/xml2po/modes/mallard.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xml2po/xml2po/modes/mallard.py b/xml2po/xml2po/modes/mallard.py index 2dac38a..017c281 100644 --- a/xml2po/xml2po/modes/mallard.py +++ b/xml2po/xml2po/modes/mallard.py @@ -130,5 +130,7 @@ class mallardXmlMode(basicXmlMode): self._output_images(root,msg) def postProcessXmlTranslation(self, doc, language, translators): - # FIXME: add translator credits - return + """Sets a language and translators in "doc" tree.""" + root = doc.getRootElement() + if root and root.name == 'page': + root.setProp('xml:lang', language) |