summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Šegan <danilo@src.gnome.org>2006-05-14 07:52:15 +0000
committerDanilo Šegan <danilo@src.gnome.org>2006-05-14 07:52:15 +0000
commit50e6f587d04c1c0a1a5a989eff30677fa6c1e677 (patch)
tree79c99ce2069045f4703e112bd2c5d5b9fc1d7953
parente57f7496453892b1c32ed6382be07364d1021bdf (diff)
downloadgnome-doc-utils-gnome-2-12.tar.gz
Fix year as UTF-8 handling for DocBook.gnome-2-12
-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):