Add fields to translation strings in DetAncestralReport.py, DetDescendantReport.py, FanChart.py.

svn: r9567
This commit is contained in:
Brian Matherly 2007-12-23 21:34:36 +00:00
parent b5946124b7
commit 4a77cfdd79
4 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2007-12-23 Brian Matherly <brian@gramps-project.org>
* src/plugins/DetAncestralReport.py:
* src/plugins/DetDescendantReport.py:
* src/plugins/FanChart.py:
Add fields to translation strings.
2007-12-23 Brian Matherly <brian@gramps-project.org> 2007-12-23 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/Makefile.am: * src/ReportBase/Makefile.am:
* src/plugins/Makefile.am: updates to makefiles * src/plugins/Makefile.am: updates to makefiles

View File

@ -492,8 +492,10 @@ class DetAncestorReport(Report):
father_name = _("unknown") father_name = _("unknown")
self.doc.start_paragraph("DAR-ChildTitle") self.doc.start_paragraph("DAR-ChildTitle")
self.doc.write_text(_("Children of %s and %s") % self.doc.write_text(
(mother_name,father_name)) _("Children of %(mother_name)s and %(father_name)s") %
{'mother_name': mother_name,
'father_name': father_name} )
self.doc.end_paragraph() self.doc.end_paragraph()
cnt = 1 cnt = 1

View File

@ -404,8 +404,10 @@ class DetDescendantReport(Report):
father_name = _("unknown") father_name = _("unknown")
self.doc.start_paragraph("DDR-ChildTitle") self.doc.start_paragraph("DDR-ChildTitle")
self.doc.write_text(_("Children of %s and %s") % self.doc.write_text(
(mother_name,father_name)) _("Children of %(mother_name)s and %(father_name)s") %
{'mother_name': mother_name,
'father_name': father_name} )
self.doc.end_paragraph() self.doc.end_paragraph()
cnt = 1 cnt = 1

View File

@ -174,8 +174,9 @@ class FanChart(Report):
block_size = min_xy / (self.max_generations * 2 - max_circular) block_size = min_xy / (self.max_generations * 2 - max_circular)
else: else:
block_size = min_xy / self.max_generations block_size = min_xy / self.max_generations
self.doc.center_text ('t', _('%d Generation Fan Chart for %s') % (self.max_generations, n), text = _("%(generations)d Generation Fan Chart for %(person)s" %
self.doc.get_usable_width() / 2, 0) { '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)): for generation in range (0, min (max_circular, self.max_generations)):
self.draw_circular (x, y, start_angle, max_angle, block_size, generation) self.draw_circular (x, y, start_angle, max_angle, block_size, generation)