Fixed icelandic seeding of last names (changed from surname to first name)
svn: r685
This commit is contained in:
parent
0e34e2cfe4
commit
319570b7c7
@ -320,16 +320,19 @@ class NewChild:
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
def icelandic(self,val):
|
def icelandic(self,val):
|
||||||
|
fname = ""
|
||||||
if self.person.getGender() == Person.male:
|
if self.person.getGender() == Person.male:
|
||||||
surname = self.person.getPrimaryName().getSurname()
|
fname = self.person.getPrimaryName().getFirstName()
|
||||||
elif self.family:
|
elif self.family:
|
||||||
f = self.family.getFather()
|
f = self.family.getFather()
|
||||||
if f:
|
if f:
|
||||||
surname = f.getPrimaryName().getSurname()
|
fname = f.getPrimaryName().getFirstName()
|
||||||
|
if fname:
|
||||||
|
fname = string.split(fname)[0]
|
||||||
if val == 0:
|
if val == 0:
|
||||||
return "%ssson" % surname
|
return "%ssson" % fname
|
||||||
elif val == 1:
|
elif val == 1:
|
||||||
return "%sdóttir" % surname
|
return "%sdóttir" % fname
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user