Remove Husband and Wife headings
These are incorrect for same-sex relationships or when the couple are unmarried. Resolves #11199
This commit is contained in:
parent
c3c025a84d
commit
13792c6948
@ -287,7 +287,7 @@ class FamilyGroup(Report):
|
|||||||
self.doc.end_cell()
|
self.doc.end_cell()
|
||||||
self.doc.end_row()
|
self.doc.end_row()
|
||||||
|
|
||||||
def dump_parent(self, title, person_handle):
|
def dump_parent(self, table_name, person_handle):
|
||||||
|
|
||||||
if not person_handle and not self.missing_info:
|
if not person_handle and not self.missing_info:
|
||||||
return
|
return
|
||||||
@ -297,16 +297,12 @@ class FamilyGroup(Report):
|
|||||||
person = self.db.get_person_from_handle(person_handle)
|
person = self.db.get_person_from_handle(person_handle)
|
||||||
name = self._name_display.display(person)
|
name = self._name_display.display(person)
|
||||||
|
|
||||||
self.doc.start_table(title, 'FGR-ParentTable')
|
self.doc.start_table(table_name, 'FGR-ParentTable')
|
||||||
self.doc.start_row()
|
self.doc.start_row()
|
||||||
self.doc.start_cell('FGR-ParentHead', 3)
|
self.doc.start_cell('FGR-ParentHead', 3)
|
||||||
self.doc.start_paragraph('FGR-ParentName')
|
self.doc.start_paragraph('FGR-ParentName')
|
||||||
mark = utils.get_person_mark(self.db, person)
|
mark = utils.get_person_mark(self.db, person)
|
||||||
# Translators: needed for French, ignore otherwise
|
self.doc.write_text(name, mark)
|
||||||
self.doc.write_text(self._("%(str1)s: %(str2)s"
|
|
||||||
) % {'str1' : title,
|
|
||||||
'str2' : name},
|
|
||||||
mark)
|
|
||||||
if self.gramps_ids:
|
if self.gramps_ids:
|
||||||
gid = person.get_gramps_id()
|
gid = person.get_gramps_id()
|
||||||
if gid:
|
if gid:
|
||||||
@ -624,7 +620,7 @@ class FamilyGroup(Report):
|
|||||||
self.doc.write_text('', mark)
|
self.doc.write_text('', mark)
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
self.dump_parent(self._("Husband"), family.get_father_handle())
|
self.dump_parent('Parent1', family.get_father_handle())
|
||||||
self.doc.start_paragraph("FGR-blank")
|
self.doc.start_paragraph("FGR-blank")
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
@ -633,7 +629,7 @@ class FamilyGroup(Report):
|
|||||||
self.doc.start_paragraph("FGR-blank")
|
self.doc.start_paragraph("FGR-blank")
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
self.dump_parent(self._("Wife"), family.get_mother_handle())
|
self.dump_parent('Parent2', family.get_mother_handle())
|
||||||
|
|
||||||
length = len(family.get_child_ref_list())
|
length = len(family.get_child_ref_list())
|
||||||
if length > 0:
|
if length > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user