* src/plugins/rel_es.py: Correct levels.

svn: r3638
This commit is contained in:
Alex Roitman 2004-10-17 19:31:38 +00:00
parent 5dca1c8f2a
commit eb6fd70753
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,6 @@
2004-10-17 Julio Sanchez <julio.sanchez@gmail.com>
* src/plugins/rel_es.py: Correct levels.
2004-10-16 Don Allingham <dallingham@users.sourceforge.net> 2004-10-16 Don Allingham <dallingham@users.sourceforge.net>
* src/ReadGedcom.py: allow default when selecting override, add * src/ReadGedcom.py: allow default when selecting override, add
the place properly on import the place properly on import

View File

@ -204,18 +204,18 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
def get_aunt(self,level): def get_aunt(self,level):
if level<len(_sister_level): if level<len(_sister_level):
return _sister_level[level] return _sister_level[level]
elif (level-1)<len(_level_name_female): elif (level-2)<len(_level_name_female):
return "%s tía abuela" % (_level_name_female[level-1]) return "%s tía abuela" % (_level_name_female[level-2])
else: else:
return "%d-ésima tía abuela" % (level-1) return "%d-ésima tía abuela" % (level-2)
def get_uncle(self,level): def get_uncle(self,level):
if level<len(_brother_level): if level<len(_brother_level):
return _brother_level[level] return _brother_level[level]
elif (level-1)<len(_level_name_male_a): elif (level-2)<len(_level_name_male_a):
return "%s tío abuelo" % (_level_name_male_a[level-1]) return "%s tío abuelo" % (_level_name_male_a[level-2])
else: else:
return "%d-ésimo tío abuelo" % (level-1) return "%d-ésimo tío abuelo" % (level-2)
def get_nephew(self,level): def get_nephew(self,level):
if level<len(_nephew_level): if level<len(_nephew_level):