diff --git a/ChangeLog b/ChangeLog index 85ba008e4..ab946db31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-23 Brian Matherly + * src/plugins/DetAncestralReport.py: + * src/plugins/DetDescendantReport.py: + * src/plugins/FanChart.py: + Add fields to translation strings. + 2007-12-23 Brian Matherly * src/ReportBase/Makefile.am: * src/plugins/Makefile.am: updates to makefiles diff --git a/src/plugins/DetAncestralReport.py b/src/plugins/DetAncestralReport.py index 88a4c0a22..a0dcc5202 100644 --- a/src/plugins/DetAncestralReport.py +++ b/src/plugins/DetAncestralReport.py @@ -492,8 +492,10 @@ class DetAncestorReport(Report): father_name = _("unknown") self.doc.start_paragraph("DAR-ChildTitle") - self.doc.write_text(_("Children of %s and %s") % - (mother_name,father_name)) + self.doc.write_text( + _("Children of %(mother_name)s and %(father_name)s") % + {'mother_name': mother_name, + 'father_name': father_name} ) self.doc.end_paragraph() cnt = 1 diff --git a/src/plugins/DetDescendantReport.py b/src/plugins/DetDescendantReport.py index 7b7339e1f..7441501db 100644 --- a/src/plugins/DetDescendantReport.py +++ b/src/plugins/DetDescendantReport.py @@ -404,8 +404,10 @@ class DetDescendantReport(Report): father_name = _("unknown") self.doc.start_paragraph("DDR-ChildTitle") - self.doc.write_text(_("Children of %s and %s") % - (mother_name,father_name)) + self.doc.write_text( + _("Children of %(mother_name)s and %(father_name)s") % + {'mother_name': mother_name, + 'father_name': father_name} ) self.doc.end_paragraph() cnt = 1 diff --git a/src/plugins/FanChart.py b/src/plugins/FanChart.py index 8fba75ded..990a8766c 100644 --- a/src/plugins/FanChart.py +++ b/src/plugins/FanChart.py @@ -174,8 +174,9 @@ class FanChart(Report): block_size = min_xy / (self.max_generations * 2 - max_circular) else: block_size = min_xy / self.max_generations - self.doc.center_text ('t', _('%d Generation Fan Chart for %s') % (self.max_generations, n), - self.doc.get_usable_width() / 2, 0) + text = _("%(generations)d Generation Fan Chart for %(person)s" % + { 'generations' : self.max_generations, 'person' : n } ) + self.doc.center_text ('t', text, self.doc.get_usable_width() / 2, 0) for generation in range (0, min (max_circular, self.max_generations)): self.draw_circular (x, y, start_angle, max_angle, block_size, generation)