From aaa0b1966efc43dee7daa6b5087dc6ca5c55c057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20S=C3=A1nchez?= Date: Thu, 6 Sep 2012 12:54:54 +0000 Subject: [PATCH] Fix error in plural cousins (same generation) relationship string generation svn: r20342 --- src/plugins/rel/rel_es.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/rel/rel_es.py b/src/plugins/rel/rel_es.py index 4b970b83a..0fe694d2f 100644 --- a/src/plugins/rel/rel_es.py +++ b/src/plugins/rel/rel_es.py @@ -600,7 +600,7 @@ class RelationshipCalculator(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)