Fixed unicode translations
svn: r617
This commit is contained in:
parent
0370b6cb35
commit
770ed4a95b
@ -281,9 +281,9 @@ class GrampsParser:
|
|||||||
mrel = ""
|
mrel = ""
|
||||||
frel = ""
|
frel = ""
|
||||||
if attrs.has_key("mrel"):
|
if attrs.has_key("mrel"):
|
||||||
mrel = attrs["mrel"]
|
mrel = u2l(attrs["mrel"])
|
||||||
if attrs.has_key("frel"):
|
if attrs.has_key("frel"):
|
||||||
frel = attrs["frel"]
|
frel = u2l(attrs["frel"])
|
||||||
if mrel=="Birth" and frel=="Birth":
|
if mrel=="Birth" and frel=="Birth":
|
||||||
self.person.MainFamily = family
|
self.person.MainFamily = family
|
||||||
else:
|
else:
|
||||||
@ -413,8 +413,8 @@ class GrampsParser:
|
|||||||
if attrs.has_key("calendar"):
|
if attrs.has_key("calendar"):
|
||||||
d.set_calendar(int(attrs['calendar']))
|
d.set_calendar(int(attrs['calendar']))
|
||||||
|
|
||||||
d.get_start_date().setIsoDate(attrs['start'])
|
d.get_start_date().setIsoDate(u2l(attrs['start']))
|
||||||
d.get_stop_date().setIsoDate(attrs['stop'])
|
d.get_stop_date().setIsoDate(u2l(attrs['stop']))
|
||||||
d.range = 1
|
d.range = 1
|
||||||
|
|
||||||
def start_dateval(self,attrs):
|
def start_dateval(self,attrs):
|
||||||
@ -430,10 +430,10 @@ class GrampsParser:
|
|||||||
if attrs.has_key("calendar"):
|
if attrs.has_key("calendar"):
|
||||||
d.set_calendar(int(attrs['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"):
|
if attrs.has_key("type"):
|
||||||
d.get_start_date().setMode(attrs['type'])
|
d.get_start_date().setMode(u2l(attrs['type']))
|
||||||
else:
|
else:
|
||||||
d.get_start_date().setMode(None)
|
d.get_start_date().setMode(None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user