summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Šegan <danilo@src.gnome.org>2006-05-14 07:50:21 +0000
committerDanilo Šegan <danilo@src.gnome.org>2006-05-14 07:50:21 +0000
commitccd49affb6a1fc2baf63a11442ba479dab59f5b5 (patch)
treef8b36e65f16430a6170481fe609e62ed1b05836e
parent2403fbc36762c69cb9d38b090c906b1d0b9da047 (diff)
downloadgnome-doc-utils-ccd49affb6a1fc2baf63a11442ba479dab59f5b5.tar.gz
Fix year as UTF-8 handling for DocBook.
-rw-r--r--xml2po/ChangeLog5
-rw-r--r--xml2po/modes/docbook.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/xml2po/ChangeLog b/xml2po/ChangeLog
index 7a93aa0..4edc7e6 100644
--- a/xml2po/ChangeLog
+++ b/xml2po/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-14 Danilo Šegan <danilo@gnome.org>
+
+ * modes/docbook.py (docbookXmlMode.postProcessXmlTranslation):
+ Treat year as utf-8 as well.
+
2006-04-11 Danilo Šegan <danilo@gnome.org>
* modes/docbook.py: Check if "translators-credits" is translated.
diff --git a/xml2po/modes/docbook.py b/xml2po/modes/docbook.py
index 88e97a5..57e15f1 100644
--- a/xml2po/modes/docbook.py
+++ b/xml2po/modes/docbook.py
@@ -178,7 +178,7 @@ class docbookXmlMode:
else:
ai.addChild(copy)
if match.group(3):
- copy.newChild(None, "year", match.group(3))
+ copy.newChild(None, "year", match.group(3).encode('utf-8'))
if match.group(1) and match.group(2):
holder = match.group(1)+"(%s)" % match.group(2)
elif match.group(1):