From 319570b7c7e2a9b311cb282aeca61a18cf5dd2b9 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 6 Jan 2002 23:05:34 +0000 Subject: [PATCH] Fixed icelandic seeding of last names (changed from surname to first name) svn: r685 --- gramps/src/SelectChild.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gramps/src/SelectChild.py b/gramps/src/SelectChild.py index 2bb438d50..df4a76d57 100644 --- a/gramps/src/SelectChild.py +++ b/gramps/src/SelectChild.py @@ -320,16 +320,19 @@ class NewChild: return "" def icelandic(self,val): + fname = "" if self.person.getGender() == Person.male: - surname = self.person.getPrimaryName().getSurname() + fname = self.person.getPrimaryName().getFirstName() elif self.family: f = self.family.getFather() if f: - surname = f.getPrimaryName().getSurname() + fname = f.getPrimaryName().getFirstName() + if fname: + fname = string.split(fname)[0] if val == 0: - return "%ssson" % surname + return "%ssson" % fname elif val == 1: - return "%sdóttir" % surname + return "%sdóttir" % fname else: return ""