6645: unable to do Spanish kinship report, 4185: Julio's patch

svn: r22010
This commit is contained in:
Jérôme Rapinat 2013-04-18 09:05:14 +00:00
parent feb36c5ce4
commit 53b67443f2

View File

@ -601,7 +601,7 @@ class RelationshipCalculator(gramps.gen.relationship.RelationshipCalculator):
# These are cousins in the same generation
if Ga == 2:
rel_str = "primos hermanos"
elif level < len(_level_name_plural):
elif (Ga-1) < len(_level_name_plural):
rel_str = "primos %s" % (_level_name_plural[Ga-1])
else:
rel_str = "primos %d-ésimos" % (Ga-1)