Add fields to translation strings in DetAncestralReport.py, DetDescendantReport.py, FanChart.py.
svn: r9567
This commit is contained in:
parent
b5946124b7
commit
4a77cfdd79
@ -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>
|
||||
* src/ReportBase/Makefile.am:
|
||||
* src/plugins/Makefile.am: updates to makefiles
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user