* src/plugins/all_relations.py: english issues

* src/Relationship.py: english issues

2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9313
This commit is contained in:
Benny Malengier
2007-11-06 19:46:07 +00:00
parent 5cc8a5357b
commit 9147ed2a9a
3 changed files with 20 additions and 13 deletions

View File

@@ -204,16 +204,18 @@ class AllRelReport():
and self.rel_class.only_birth(relation[4])
distorig = len(relation[4])
distother = len(relation[2])
if distorig == 1 or distother ==1 :
if distorig == 1 and distother == 1 and not inlawa \
and not inlawb:
rel_str = self.rel_class.get_sibling_relationship_string(
self.rel_class.get_sibling_type(
self.database, pers1, pers2),
self.home_person.get_gender(),
pers2.get_gender())
rel_str = self.rel_class.get_single_relationship_string(
self.person.get_gender())
else:
rel_str = self.rel_class.get_single_relationship_string(
distorig, distother,
self.home_person.get_gender(),
pers2.get_gender(),
self.person.get_gender(),
relation[4], relation[2],
only_birth = birth,
in_law_a = inlawa, in_law_b = inlawb)