summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b0fd1f0..9523813 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.
+
2005-09-13 Stepan Kasal <kasal@ucw.cz>
* xml2po.pc.in: Add datarootdir variable, for compatibility
diff --git a/xml2po/modes/docbook.py b/xml2po/modes/docbook.py
index 2908859..7481aa5 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):