From 7f3cdb6d71b204bf33ae4c7624455e9881dc1859 Mon Sep 17 00:00:00 2001 From: romjerome Date: Sat, 5 Dec 2015 11:59:36 +0100 Subject: [PATCH] 9041: Father/mother's age attributes are not translated on DA and DD reports --- gramps/plugins/textreport/detancestralreport.py | 6 ++++-- gramps/plugins/textreport/detdescendantreport.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/textreport/detancestralreport.py b/gramps/plugins/textreport/detancestralreport.py index fbaf0bc68..04e868c1d 100644 --- a/gramps/plugins/textreport/detancestralreport.py +++ b/gramps/plugins/textreport/detancestralreport.py @@ -407,7 +407,8 @@ class DetAncestorReport(Report): for attr in attrs: self.doc.start_paragraph('DAR-MoreDetails') - attrName = self._get_type(attr.get_type()) + attrName = attr.get_type().type2base() + # translators: needed for French, ignore otherwise text = self._("%(type)s: %(value)s%(endnotes)s") % { 'type' : self._(attrName), 'value' : attr.get_value(), @@ -462,7 +463,8 @@ class DetAncestorReport(Report): if text: # translators: needed for Arabic, ignore otherwise text += self._("; ") - attrName = self._get_type(attr.get_type()) + attrName = attr.get_type().type2base() + # translators: needed for French, ignore otherwise text += self._("%(type)s: %(value)s%(endnotes)s") % { 'type' : self._(attrName), 'value' : attr.get_value(), diff --git a/gramps/plugins/textreport/detdescendantreport.py b/gramps/plugins/textreport/detdescendantreport.py index d9e06d3f9..8eb818636 100644 --- a/gramps/plugins/textreport/detdescendantreport.py +++ b/gramps/plugins/textreport/detdescendantreport.py @@ -467,7 +467,8 @@ class DetDescendantReport(Report): if text: # translators: needed for Arabic, ignore otherwise text += self._("; ") - attrName = self._get_type(attr.get_type()) + attrName = attr.get_type().type2base() + # translators: needed for French, ignore otherwise text += self._("%(type)s: %(value)s%(endnotes)s") % { 'type' : self._(attrName), 'value' : attr.get_value(), @@ -863,7 +864,8 @@ class DetDescendantReport(Report): for attr in attrs: self.doc.start_paragraph('DDR-MoreDetails') - attrName = self._get_type(attr.get_type()) + attrName = attr.get_type().type2base() + # translators: needed for French, ignore otherwise text = self._("%(type)s: %(value)s%(endnotes)s") % { 'type' : self._(attrName), 'value' : attr.get_value(),