latests template.po

svn: r437
This commit is contained in:
Don Allingham 2001-09-28 12:53:05 +00:00
parent 797b13a2bc
commit def1b84776
2 changed files with 838 additions and 840 deletions

View File

@ -270,7 +270,7 @@ class GrampsParser(handler.ContentHandler):
#--------------------------------------------------------------------- #---------------------------------------------------------------------
def start_people(self,attrs): def start_people(self,attrs):
if attrs.has_key("default"): if attrs.has_key("default"):
self.tempDefault = attrs["default"] self.tempDefault = u2l(attrs["default"])
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
@ -345,24 +345,23 @@ class GrampsParser(handler.ContentHandler):
#--------------------------------------------------------------------- #---------------------------------------------------------------------
def start_childof(self,attrs): def start_childof(self,attrs):
family = self.db.findFamilyNoMap(u2l(attrs["ref"])) family = self.db.findFamilyNoMap(u2l(attrs["ref"]))
if attrs.has_key("type"): if len(attrs) == 1:
type = u2l(attrs["type"]) self.person.MainFamily = family
self.person.AltFamilyList.append((family,type,type))
elif attrs.has_key("mrel") or attrs.has_key("frel"):
if attrs.has_key("mrel"):
mrel = u2l(attrs["mrel"])
else: else:
mrel = "" mrel = ""
if attrs.has_key("frel"):
frel = u2l(attrs["frel"])
else:
frel = "" frel = ""
if attrs.has_key("mrel"):
mrel = attrs["mrel"]
if attrs.has_key("frel"):
frel = attrs["frel"]
if mrel=="Birth" and frel=="Birth": if mrel=="Birth" and frel=="Birth":
self.person.MainFamily = family self.person.MainFamily = family
else: else:
if mrel or frel:
self.person.AltFamilyList.append((family,mrel,frel)) self.person.AltFamilyList.append((family,mrel,frel))
else: else:
self.person.MainFamily = family type = u2l(attrs["type"])
self.person.AltFamilyList.append((family,type,type))
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
@ -449,7 +448,7 @@ class GrampsParser(handler.ContentHandler):
elif self.placeobj: elif self.placeobj:
self.placeobj.addPhoto(photo) self.placeobj.addPhoto(photo)
else: else:
photo.addProperty(key,attrs[key]) photo.addProperty(key,u2l(attrs[key]))
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
@ -465,7 +464,7 @@ class GrampsParser(handler.ContentHandler):
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
def start_pos(self,attrs): def start_pos(self,attrs):
self.person.position = (int(u2l(attrs["x"])), int(u2l(attrs["y"]))) self.person.position = (int(attrs["x"]), int(attrs["y"]))
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #

File diff suppressed because it is too large Load Diff