* src/plugins/FtmStyleAncestors.py: Fix coma-sepration for endnotes.
Translate "Endnotes" sub-heading. Enable pagebreak only when generation > 1 (was 0). * src/plugins/FtmStyleDescendants.py: Likewise. * src/const.py.in: Make the confidence order high to low (was l->h). * src/plugins/AncestorChart.py: Enable translation for "b." and "d." * src/plugins/DesGraph.py: Likewise. * src/po/template.po: Update the above corrections in template. svn: r1887
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000 Donald N. Allingham
|
||||
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -50,6 +50,9 @@ from QuestionDialog import ErrorDialog
|
||||
from SubstKeywords import SubstKeywords
|
||||
from intl import gettext as _
|
||||
|
||||
_BORN = _('b.')
|
||||
_DIED = _('d.')
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# pt2cm - convert points to centimeters
|
||||
@@ -232,7 +235,7 @@ class AncestorChartDialog(Report.DrawReportDialog):
|
||||
|
||||
def get_report_extra_textbox_info(self):
|
||||
"""Label the textbox and provide the default contents."""
|
||||
return (_("Display Format"), "$n\nb. $b\nd. $d",
|
||||
return (_("Display Format"), "$n\n%s $b\n%s $d" % (_BORN,_DIED),
|
||||
_("Allows you to customize the data in the boxes in the report"))
|
||||
|
||||
def make_default_style(self):
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000 Donald N. Allingham
|
||||
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -50,6 +50,9 @@ from SubstKeywords import SubstKeywords
|
||||
from intl import gettext as _
|
||||
from QuestionDialog import ErrorDialog
|
||||
|
||||
_BORN = _('b.')
|
||||
_DIED = _('d.')
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# constants
|
||||
@@ -322,7 +325,7 @@ class DescendantReportDialog(Report.DrawReportDialog):
|
||||
|
||||
def get_report_extra_textbox_info(self):
|
||||
"""Label the textbox and provide the default contents."""
|
||||
return (_("Display Format"), "$n\nb. $b\nd. $d",
|
||||
return (_("Display Format"), "$n\n%s $b\n%s $d" % (_BORN,_DIED),
|
||||
_("Allows you to customize the data in the boxes in the report"))
|
||||
|
||||
def make_default_style(self):
|
||||
|
||||
@@ -91,7 +91,7 @@ class FtmAncestorReport(Report.Report):
|
||||
for key in keys :
|
||||
(person,generation) = self.map[key]
|
||||
if old_gen != generation:
|
||||
if self.pgbrk and generation > 0:
|
||||
if self.pgbrk and generation > 1:
|
||||
self.doc.page_break()
|
||||
self.doc.start_paragraph("Generation")
|
||||
t = _("Generation No. %d") % generation
|
||||
@@ -199,7 +199,7 @@ class FtmAncestorReport(Report.Report):
|
||||
return
|
||||
|
||||
self.doc.start_paragraph('Generation')
|
||||
self.doc.write_text('Endnotes')
|
||||
self.doc.write_text(_('Endnotes'))
|
||||
self.doc.end_paragraph()
|
||||
|
||||
keys.sort()
|
||||
@@ -237,10 +237,11 @@ class FtmAncestorReport(Report.Report):
|
||||
slist = obj.getSourceRefList()
|
||||
if slist:
|
||||
msg.write('<super>')
|
||||
first = 0
|
||||
first = 1
|
||||
for ref in slist:
|
||||
if first == 1:
|
||||
if not first:
|
||||
msg.write(',')
|
||||
first = 0
|
||||
msg.write("%d" % self.sref_index)
|
||||
self.sref_map[self.sref_index] = ref
|
||||
self.sref_index += 1
|
||||
|
||||
@@ -117,7 +117,7 @@ class FtmDescendantReport(Report.Report):
|
||||
generations.sort()
|
||||
|
||||
for generation in generations:
|
||||
if self.pgbrk and generation > 0:
|
||||
if self.pgbrk and generation > 1:
|
||||
self.doc.page_break()
|
||||
self.doc.start_paragraph("Generation")
|
||||
t = _("Generation No. %d") % generation
|
||||
@@ -232,7 +232,7 @@ class FtmDescendantReport(Report.Report):
|
||||
return
|
||||
|
||||
self.doc.start_paragraph('Generation')
|
||||
self.doc.write_text('Endnotes')
|
||||
self.doc.write_text(_('Endnotes'))
|
||||
self.doc.end_paragraph()
|
||||
|
||||
keys.sort()
|
||||
@@ -270,10 +270,11 @@ class FtmDescendantReport(Report.Report):
|
||||
slist = obj.getSourceRefList()
|
||||
if slist:
|
||||
msg.write('<super>')
|
||||
first = 0
|
||||
first = 1
|
||||
for ref in slist:
|
||||
if first == 1:
|
||||
if not first:
|
||||
msg.write(',')
|
||||
first = 0
|
||||
msg.write("%d" % self.sref_index)
|
||||
self.sref_map[self.sref_index] = ref
|
||||
self.sref_index += 1
|
||||
|
||||
Reference in New Issue
Block a user