9041: Father/mother's age attributes are not translated on DA and DD reports

This commit is contained in:
romjerome 2015-12-05 11:59:36 +01:00
parent 6fa47010cf
commit 7f3cdb6d71
2 changed files with 8 additions and 4 deletions

View File

@ -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(),

View File

@ -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(),