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

svn: r22011
This commit is contained in:
Jérôme Rapinat 2013-04-18 09:06:38 +00:00
parent cceb28c5b9
commit 57f6f389a8

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)