From df80352d689f3f52c5e78235a47cf9af64dd3b76 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 14 Dec 2001 15:43:03 +0000 Subject: [PATCH] Fixed unicode translations svn: r617 --- src/GrampsParser.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/GrampsParser.py b/src/GrampsParser.py index 9ea986e2c..cac0ba3d1 100644 --- a/src/GrampsParser.py +++ b/src/GrampsParser.py @@ -281,9 +281,9 @@ class GrampsParser: mrel = "" frel = "" if attrs.has_key("mrel"): - mrel = attrs["mrel"] + mrel = u2l(attrs["mrel"]) if attrs.has_key("frel"): - frel = attrs["frel"] + frel = u2l(attrs["frel"]) if mrel=="Birth" and frel=="Birth": self.person.MainFamily = family else: @@ -413,8 +413,8 @@ class GrampsParser: if attrs.has_key("calendar"): d.set_calendar(int(attrs['calendar'])) - d.get_start_date().setIsoDate(attrs['start']) - d.get_stop_date().setIsoDate(attrs['stop']) + d.get_start_date().setIsoDate(u2l(attrs['start'])) + d.get_stop_date().setIsoDate(u2l(attrs['stop'])) d.range = 1 def start_dateval(self,attrs): @@ -430,10 +430,10 @@ class GrampsParser: if attrs.has_key("calendar"): d.set_calendar(int(attrs['calendar'])) - d.get_start_date().setIsoDate(attrs['val']) + d.get_start_date().setIsoDate(u2l(attrs['val'])) if attrs.has_key("type"): - d.get_start_date().setMode(attrs['type']) + d.get_start_date().setMode(u2l(attrs['type'])) else: d.get_start_date().setMode(None)