From 0633930667fe3422f08683dbf5289cfd4c041d09 Mon Sep 17 00:00:00 2001 From: romjerome Date: Sat, 14 Jan 2017 09:55:59 +0100 Subject: [PATCH] 9899: tweak adjustement where one could switch locations for both parents this could be a specific case, so for more security, use hardcoded string --- gramps/gen/plug/report/utils.py | 2 +- gramps/gui/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/plug/report/utils.py b/gramps/gen/plug/report/utils.py index 8f4282553..656bc6ed0 100644 --- a/gramps/gen/plug/report/utils.py +++ b/gramps/gen/plug/report/utils.py @@ -411,7 +411,7 @@ def parents_labels(db, family, glocale): if father.gender == 0: rel_father = rel_mother if mother.gender == 1: - rel_mother = rel_father + rel_mother = _('Father') else: rc = get_relationship_calculator(True, glocale) rel_father = rc.get_one_relationship(db, mother, father) diff --git a/gramps/gui/utils.py b/gramps/gui/utils.py index f3c2e89da..db95a02b1 100644 --- a/gramps/gui/utils.py +++ b/gramps/gui/utils.py @@ -703,7 +703,7 @@ def parents_labels(db, family): if father.gender == 0: rel_father = rel_mother if mother.gender == 1: - rel_mother = rel_father + rel_mother = _('Father') else: rc = RelationshipCalculator() rel_father = rc.get_one_relationship(db, mother, father)