summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-01-10 11:10:41 -0500
committerShaun McCance <shaunm@gnome.org>2011-01-10 11:10:41 -0500
commit5495828ef2dafef0ae1f7b1a8957b4740d921dba (patch)
tree79b20a45a99149dc2849976a4f983c414be0ffa8
parentf924124a26377c22fe039cc413f5143b1ab6d263 (diff)
downloadgnome-doc-utils-5495828ef2dafef0ae1f7b1a8957b4740d921dba.tar.gz
xml2po/modes/mallard.py: Set @xml:lang on pages, bug #630053
-rw-r--r--xml2po/xml2po/modes/mallard.py6
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)