consolidate some report style descriptions (fewer strings to translate)
This commit is contained in:
parent
0919763f15
commit
08746bf024
@ -105,7 +105,7 @@ class TitleN(TitleNoDisplay):
|
||||
"""No Title class for the report """
|
||||
|
||||
def __init__(self, doc, locale):
|
||||
TitleNoDisplay.__init__(self, doc, "AC2-Title")
|
||||
TitleNoDisplay.__init__(self, doc, "AC2-Title-box")
|
||||
self._ = locale.translation.sgettext
|
||||
|
||||
def calc_title(self, center):
|
||||
@ -118,7 +118,7 @@ class TitleA(TitleBox):
|
||||
"""Title class for the report """
|
||||
def __init__(self, doc, locale, name_displayer):
|
||||
self._nd = name_displayer
|
||||
TitleBox.__init__(self, doc, "AC2-Title")
|
||||
TitleBox.__init__(self, doc, "AC2-Title-box")
|
||||
self._ = locale.translation.sgettext
|
||||
|
||||
def calc_title(self, center):
|
||||
@ -1043,8 +1043,8 @@ class AncestorTreeOptions(MenuReportOptions):
|
||||
font.set_type_face(FONT_SANS_SERIF)
|
||||
para_style = ParagraphStyle()
|
||||
para_style.set_font(font)
|
||||
para_style.set_description(_('The basic style used for the '
|
||||
'text display.'))
|
||||
para_style.set_description(
|
||||
_('The basic style used for the text display.'))
|
||||
default_style.add_paragraph_style("AC2-Normal", para_style)
|
||||
box_shadow = PT2CM(font.get_size()) * .6
|
||||
|
||||
@ -1053,8 +1053,8 @@ class AncestorTreeOptions(MenuReportOptions):
|
||||
font.set_type_face(FONT_SANS_SERIF)
|
||||
para_style = ParagraphStyle()
|
||||
para_style.set_font(font)
|
||||
para_style.set_description(_('The basic style used for the '
|
||||
'note display.'))
|
||||
para_style.set_description(
|
||||
_('The basic style used for the note display.'))
|
||||
default_style.add_paragraph_style("AC2-Note", para_style)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1063,8 +1063,7 @@ class AncestorTreeOptions(MenuReportOptions):
|
||||
para_style = ParagraphStyle()
|
||||
para_style.set_font(font)
|
||||
para_style.set_alignment(PARA_ALIGN_CENTER)
|
||||
para_style.set_description(_('The basic style used for the '
|
||||
'title display.'))
|
||||
para_style.set_description(_('The style used for the title.'))
|
||||
default_style.add_paragraph_style("AC2-Title", para_style)
|
||||
|
||||
## Draw styles
|
||||
@ -1085,12 +1084,14 @@ class AncestorTreeOptions(MenuReportOptions):
|
||||
graph_style.set_fill_color((255, 255, 255))
|
||||
default_style.add_draw_style("AC2-note-box", graph_style)
|
||||
|
||||
# TODO this seems meaningless, as only the text is displayed
|
||||
graph_style = GraphicsStyle()
|
||||
graph_style.set_paragraph_style("AC2-Title")
|
||||
graph_style.set_color((0, 0, 0))
|
||||
graph_style.set_fill_color((255, 255, 255))
|
||||
graph_style.set_line_width(0)
|
||||
default_style.add_draw_style("AC2-Title", graph_style)
|
||||
graph_style.set_description(_("Cannot edit this reference"))
|
||||
default_style.add_draw_style("AC2-Title-box", graph_style)
|
||||
|
||||
graph_style = GraphicsStyle()
|
||||
default_style.add_draw_style("AC2-line", graph_style)
|
||||
|
@ -132,7 +132,7 @@ class PlaceHolderBox(BoxBase):
|
||||
#------------------------------------------------------------------------
|
||||
class DescendantTitleBase(TitleBox):
|
||||
def __init__(self, dbase, doc, locale, name_displayer,
|
||||
boxstr="CG2-Title"):
|
||||
boxstr="CG2-Title-box"):
|
||||
self._nd = name_displayer
|
||||
TitleBox.__init__(self, doc, boxstr)
|
||||
self.database = dbase
|
||||
@ -204,7 +204,7 @@ class TitleNone(TitleNoDisplay):
|
||||
"""No Title class for the report """
|
||||
|
||||
def __init__(self, dbase, doc, locale):
|
||||
TitleNoDisplay.__init__(self, doc, "CG2-Title")
|
||||
TitleNoDisplay.__init__(self, doc, "CG2-Title-box")
|
||||
self._ = locale.translation.sgettext
|
||||
|
||||
def calc_title(self, persons):
|
||||
@ -1760,9 +1760,7 @@ class DescendTreeOptions(MenuReportOptions):
|
||||
para_style = ParagraphStyle()
|
||||
para_style.set_font(font)
|
||||
para_style.set_alignment(PARA_ALIGN_CENTER)
|
||||
para_style.set_description(
|
||||
_("The basic style used for the title display.")
|
||||
)
|
||||
para_style.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("CG2-Title", para_style)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1771,8 +1769,7 @@ class DescendTreeOptions(MenuReportOptions):
|
||||
para_style = ParagraphStyle()
|
||||
para_style.set_font(font)
|
||||
para_style.set_description(
|
||||
_('The basic style used for the text display.')
|
||||
)
|
||||
_('The basic style used for the text display.'))
|
||||
default_style.add_paragraph_style("CG2-Normal", para_style)
|
||||
|
||||
#Set the size of the shadow based on the font size! Much better
|
||||
@ -1783,8 +1780,7 @@ class DescendTreeOptions(MenuReportOptions):
|
||||
para_style = ParagraphStyle()
|
||||
para_style.set_font(font)
|
||||
para_style.set_description(
|
||||
_('The bold style used for the text display.')
|
||||
)
|
||||
_('The bold style used for the text display.'))
|
||||
default_style.add_paragraph_style("CG2-Bold", para_style)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1793,16 +1789,17 @@ class DescendTreeOptions(MenuReportOptions):
|
||||
para_style = ParagraphStyle()
|
||||
para_style.set_font(font)
|
||||
para_style.set_description(
|
||||
_('The basic style used for the note display.')
|
||||
)
|
||||
_('The basic style used for the note display.'))
|
||||
default_style.add_paragraph_style("CG2-Note", para_style)
|
||||
|
||||
# TODO this seems meaningless, as only the text is displayed
|
||||
graph_style = GraphicsStyle()
|
||||
graph_style.set_paragraph_style("CG2-Title")
|
||||
graph_style.set_color((0, 0, 0))
|
||||
graph_style.set_fill_color((255, 255, 255))
|
||||
graph_style.set_line_width(0)
|
||||
default_style.add_draw_style("CG2-Title", graph_style)
|
||||
graph_style.set_description(_("Cannot edit this reference"))
|
||||
default_style.add_draw_style("CG2-Title-box", graph_style)
|
||||
|
||||
## Draw styles
|
||||
graph_style = GraphicsStyle()
|
||||
|
@ -767,7 +767,7 @@ class FanChartOptions(MenuReportOptions):
|
||||
p_style.set_font(f_style)
|
||||
p_style.set_alignment(PARA_ALIGN_CENTER)
|
||||
p_style.set_description(
|
||||
_('The basic style used for the default text display.'))
|
||||
_('The basic style used for the text display.'))
|
||||
default_style.add_paragraph_style("FC-Text", p_style)
|
||||
|
||||
for i in range(0, self.max_generations):
|
||||
|
@ -1127,7 +1127,7 @@ class StatisticsChartOptions(MenuReportOptions):
|
||||
pstyle = ParagraphStyle()
|
||||
pstyle.set_font(fstyle)
|
||||
pstyle.set_alignment(PARA_ALIGN_CENTER)
|
||||
pstyle.set_description(_("The style used for the title of the page."))
|
||||
pstyle.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("SC-Title", pstyle)
|
||||
|
||||
"""
|
||||
|
@ -476,7 +476,7 @@ class TimeLineOptions(MenuReportOptions):
|
||||
fstyle.set_type_face(FONT_SANS_SERIF)
|
||||
pstyle = ParagraphStyle()
|
||||
pstyle.set_font(fstyle)
|
||||
pstyle.set_description(_("The style used for the person's name."))
|
||||
pstyle.set_description(_("The basic style used for the text display."))
|
||||
default_style.add_paragraph_style("TLG-Name", pstyle)
|
||||
|
||||
fstyle = FontStyle()
|
||||
@ -485,7 +485,7 @@ class TimeLineOptions(MenuReportOptions):
|
||||
pstyle = ParagraphStyle()
|
||||
pstyle.set_font(fstyle)
|
||||
pstyle.set_alignment(PARA_ALIGN_CENTER)
|
||||
pstyle.set_description(_("The style used for the year labels."))
|
||||
pstyle.set_description(_("The style used for the section headers."))
|
||||
default_style.add_paragraph_style("TLG-Label", pstyle)
|
||||
|
||||
fstyle = FontStyle()
|
||||
@ -494,7 +494,7 @@ class TimeLineOptions(MenuReportOptions):
|
||||
pstyle = ParagraphStyle()
|
||||
pstyle.set_font(fstyle)
|
||||
pstyle.set_alignment(PARA_ALIGN_CENTER)
|
||||
pstyle.set_description(_("The style used for the title of the page."))
|
||||
pstyle.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("TLG-Title", pstyle)
|
||||
|
||||
"""
|
||||
|
@ -117,5 +117,5 @@ class AlphabeticalIndexOptions(MenuReportOptions):
|
||||
font.set(face=FONT_SANS_SERIF, size=10)
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_description(_('The style used for index entries.'))
|
||||
para.set_description(_('The basic style used for the text display.'))
|
||||
default_style.add_paragraph_style("IDX-Entry", para)
|
||||
|
@ -348,7 +348,7 @@ class AncestorOptions(MenuReportOptions):
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_('The style used for the title of the page.'))
|
||||
para.set_description(_('The style used for the title.'))
|
||||
default_style.add_paragraph_style("AHN-Title", para)
|
||||
|
||||
#
|
||||
|
@ -132,7 +132,7 @@ class CustomTextOptions(MenuReportOptions):
|
||||
category_name = _("Text")
|
||||
|
||||
self.__top = TextOption(_("Initial Text"), [""])
|
||||
self.__top.set_help(_("Text to display at the top."))
|
||||
self.__top.set_help(_("Text to display at the top"))
|
||||
menu.add_option(category_name, "top", self.__top)
|
||||
|
||||
self.__mid = TextOption(_("Middle Text"), [""])
|
||||
@ -140,7 +140,7 @@ class CustomTextOptions(MenuReportOptions):
|
||||
menu.add_option(category_name, "mid", self.__mid)
|
||||
|
||||
self.__bot = TextOption(_("Final Text"), [""])
|
||||
self.__bot.set_help(_("Text to display last."))
|
||||
self.__bot.set_help(_("Text to display at the bottom"))
|
||||
menu.add_option(category_name, "bot", self.__bot)
|
||||
|
||||
def get_subject(self):
|
||||
@ -161,8 +161,7 @@ class CustomTextOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set(pad=0.5)
|
||||
para.set_description(
|
||||
_('The style used for the first portion of the custom text.'))
|
||||
para.set_description(_('Text to display at the top'))
|
||||
default_style.add_paragraph_style("CBT-Initial", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -171,8 +170,7 @@ class CustomTextOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set(pad=0.5)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(
|
||||
_('The style used for the middle portion of the custom text.'))
|
||||
para.set_description(_('Text to display in the middle'))
|
||||
default_style.add_paragraph_style("CBT-Middle", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -181,6 +179,5 @@ class CustomTextOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set(pad=0.5)
|
||||
para.set_description(
|
||||
_('The style used for the last portion of the custom text.'))
|
||||
para.set_description(_('Text to display at the bottom'))
|
||||
default_style.add_paragraph_style("CBT-Final", para)
|
||||
|
@ -559,7 +559,7 @@ class DescendantOptions(MenuReportOptions):
|
||||
pstyle.set_bottom_margin(utils.pt2cm(3))
|
||||
pstyle.set_font(fstyle)
|
||||
pstyle.set_alignment(PARA_ALIGN_CENTER)
|
||||
pstyle.set_description(_("The style used for the title of the page."))
|
||||
pstyle.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("DR-Title", pstyle)
|
||||
|
||||
fstyle = FontStyle()
|
||||
|
@ -950,7 +950,7 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_('The style used for the title of the page.'))
|
||||
para.set_description(_('The style used for the title.'))
|
||||
default_style.add_paragraph_style("DAR-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -980,7 +980,8 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
para.set(first_indent=-0.75, lmargin=1.75)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for the children list.'))
|
||||
para.set_description(
|
||||
_('The style used for the text related to the children.'))
|
||||
default_style.add_paragraph_style("DAR-ChildList", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -990,6 +991,7 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
para.set(first_indent=0.0, lmargin=1.0)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for the note header.'))
|
||||
default_style.add_paragraph_style("DAR-NoteHeader", para)
|
||||
|
||||
para = ParagraphStyle()
|
||||
@ -1003,7 +1005,7 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
para.set(first_indent=-1.0, lmargin=1.0)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for the first personal entry.'))
|
||||
para.set_description(_('The style used for first level headings.'))
|
||||
default_style.add_paragraph_style("DAR-First-Entry", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1013,7 +1015,7 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
para.set(first_indent=0.0, lmargin=1.0)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for the More About header.'))
|
||||
para.set_description(_('The style used for second level headings.'))
|
||||
default_style.add_paragraph_style("DAR-MoreHeader", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1023,7 +1025,7 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
para.set(first_indent=0.0, lmargin=1.0)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for additional detail data.'))
|
||||
para.set_description(_('The style used for details.'))
|
||||
default_style.add_paragraph_style("DAR-MoreDetails", para)
|
||||
|
||||
endnotes.add_endnote_styles(default_style)
|
||||
|
@ -1173,7 +1173,7 @@ class DetDescendantOptions(MenuReportOptions):
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_('The style used for the title of the page.'))
|
||||
para.set_description(_('The style used for the title.'))
|
||||
default_style.add_paragraph_style("DDR-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1203,7 +1203,8 @@ class DetDescendantOptions(MenuReportOptions):
|
||||
para.set(first_indent=-0.75, lmargin=2.25)
|
||||
para.set_top_margin(0.125)
|
||||
para.set_bottom_margin(0.125)
|
||||
para.set_description(_('The style used for the children list.'))
|
||||
para.set_description(
|
||||
_('The style used for the text related to the children.'))
|
||||
default_style.add_paragraph_style("DDR-ChildList", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1213,6 +1214,7 @@ class DetDescendantOptions(MenuReportOptions):
|
||||
para.set(first_indent=0.0, lmargin=1.5)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for the note header.'))
|
||||
default_style.add_paragraph_style("DDR-NoteHeader", para)
|
||||
|
||||
para = ParagraphStyle()
|
||||
@ -1226,7 +1228,7 @@ class DetDescendantOptions(MenuReportOptions):
|
||||
para.set(first_indent=-1.5, lmargin=1.5)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for the first personal entry.'))
|
||||
para.set_description(_('The style used for first level headings.'))
|
||||
default_style.add_paragraph_style("DDR-First-Entry", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1236,9 +1238,7 @@ class DetDescendantOptions(MenuReportOptions):
|
||||
para.set(first_indent=0.0, lmargin=1.5)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(
|
||||
_('The style used for the More About header and '
|
||||
'for headers of mates.'))
|
||||
para.set_description(_('The style used for second level headings.'))
|
||||
default_style.add_paragraph_style("DDR-MoreHeader", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1248,7 +1248,7 @@ class DetDescendantOptions(MenuReportOptions):
|
||||
para.set(first_indent=0.0, lmargin=1.5)
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for additional detail data.'))
|
||||
para.set_description(_('The style used for details.'))
|
||||
default_style.add_paragraph_style("DDR-MoreDetails", para)
|
||||
|
||||
endnotes.add_endnote_styles(default_style)
|
||||
|
@ -207,8 +207,8 @@ class EndOfLineReport(Report):
|
||||
death_date = self._get_date(event.get_date_object())
|
||||
dates = ''
|
||||
if birth_date or death_date:
|
||||
dates = self._(" (%(birth_date)s - %(death_date)s)"
|
||||
) % {'birth_date' : birth_date,
|
||||
dates = " (%(birth_date)s - %(death_date)s)" % {
|
||||
'birth_date' : birth_date,
|
||||
'death_date' : death_date}
|
||||
|
||||
self.doc.start_row()
|
||||
@ -293,7 +293,7 @@ class EndOfLineOptions(MenuReportOptions):
|
||||
para.set_bottom_margin(utils.pt2cm(8))
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_("The style used for the title of the page."))
|
||||
para.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("EOL-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -302,7 +302,7 @@ class EndOfLineOptions(MenuReportOptions):
|
||||
para.set_bottom_margin(utils.pt2cm(6))
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_('The style used for the section headers.'))
|
||||
para.set_description(_('The style used for the subtitle.'))
|
||||
default_style.add_paragraph_style("EOL-Subtitle", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -320,8 +320,7 @@ class EndOfLineOptions(MenuReportOptions):
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_top_margin(utils.pt2cm(6))
|
||||
para.set_description(
|
||||
_('The basic style used for generation headings.'))
|
||||
para.set_description(_('The style used for the generation header.'))
|
||||
default_style.add_paragraph_style("EOL-Generation", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -330,7 +329,7 @@ class EndOfLineOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set_top_margin(0)
|
||||
para.set_bottom_margin(utils.pt2cm(6))
|
||||
para.set_description(_('The basic style used for the text display.'))
|
||||
para.set_description(_('The style used for details.'))
|
||||
default_style.add_paragraph_style("EOL-Pedigree", para)
|
||||
|
||||
#Table Styles
|
||||
|
@ -855,7 +855,7 @@ class FamilyGroupOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_header_level(1)
|
||||
para.set_description(_("The style used for the title of the page."))
|
||||
para.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style('FGR-Title', para)
|
||||
|
||||
font = FontStyle()
|
||||
|
@ -257,7 +257,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table('note', 'IDS-IndTable')
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell('IDS-TableHead', 2)
|
||||
self.write_paragraph(self._('Notes'), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._('Notes'), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
|
||||
@ -289,7 +289,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Alternate Parents'),
|
||||
style='IDS-TableTitle')
|
||||
style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
|
||||
@ -356,7 +356,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Relationship to home person'),
|
||||
style='IDS-TableTitle')
|
||||
style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
self.doc.start_row()
|
||||
@ -376,7 +376,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Alternate Names'),
|
||||
style='IDS-TableTitle')
|
||||
style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
|
||||
@ -403,7 +403,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table("addresses", "IDS-IndTable")
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Addresses'), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._('Addresses'), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
|
||||
@ -428,7 +428,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table("associations", "IDS-IndTable")
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Associations'), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._('Associations'), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
for person_ref in self.person.get_person_ref_list():
|
||||
@ -455,7 +455,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table("attributes", "IDS-IndTable")
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Attributes'), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._('Attributes'), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
|
||||
@ -482,18 +482,18 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table("ordinances", "IDS-IndTable")
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('LDS Ordinance'), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._('LDS Ordinance'), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
self.doc.end_table()
|
||||
|
||||
self.doc.start_table("ordinances3", "IDS-OrdinanceTable")
|
||||
self.doc.start_row()
|
||||
self.write_cell(self._('Type'), style='IDS-Section')
|
||||
self.write_cell(self._('Date'), style='IDS-Section')
|
||||
self.write_cell(self._('Status'), style='IDS-Section')
|
||||
self.write_cell(self._('Temple'), style='IDS-Section')
|
||||
self.write_cell(self._('Place'), style='IDS-Section')
|
||||
self.write_cell(self._('Type'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Date'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Status'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Temple'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Place'), style='IDS-TableSection')
|
||||
self.doc.end_row()
|
||||
|
||||
for lds_ord in ord_list:
|
||||
@ -531,7 +531,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table("tags", "IDS-IndTable")
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Tags'), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._('Tags'), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
for tag_handle in thlist:
|
||||
@ -573,7 +573,7 @@ class IndivCompleteReport(Report):
|
||||
cells = 3 # the GalleryTable has 3 cells
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", cells)
|
||||
self.write_paragraph(self._('Images'), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._('Images'), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
media_count = 0
|
||||
@ -597,7 +597,7 @@ class IndivCompleteReport(Report):
|
||||
if image_count % cells == 0:
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell('IDS-NormalCell')
|
||||
self.write_paragraph(description, style='IDS-ImageCaptionCenter')
|
||||
self.write_paragraph(description, style='IDS-ImageCaption')
|
||||
utils.insert_image(self._db, self.doc, media_ref, self._user,
|
||||
align='center', w_cm=5.0, h_cm=5.0)
|
||||
self.do_attributes(media.get_attribute_list() +
|
||||
@ -624,7 +624,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._('Families'),
|
||||
style='IDS-TableTitle')
|
||||
style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
self.doc.end_table()
|
||||
@ -687,11 +687,11 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table("ordinances2", "IDS-OrdinanceTable2")
|
||||
self.doc.start_row()
|
||||
self.write_cell(self._('LDS Ordinance'))
|
||||
self.write_cell(self._('Type'), style='IDS-Section')
|
||||
self.write_cell(self._('Date'), style='IDS-Section')
|
||||
self.write_cell(self._('Status'), style='IDS-Section')
|
||||
self.write_cell(self._('Temple'), style='IDS-Section')
|
||||
self.write_cell(self._('Place'), style='IDS-Section')
|
||||
self.write_cell(self._('Type'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Date'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Status'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Temple'), style='IDS-TableSection')
|
||||
self.write_cell(self._('Place'), style='IDS-TableSection')
|
||||
self.doc.end_row()
|
||||
|
||||
for lds_ord in ord_list:
|
||||
@ -750,7 +750,7 @@ class IndivCompleteReport(Report):
|
||||
self.doc.start_table(event_group_sect, "IDS-IndTable")
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("IDS-TableHead", 2)
|
||||
self.write_paragraph(self._(event_group_sect), style='IDS-TableTitle')
|
||||
self.write_paragraph(self._(event_group_sect), style='IDS-SectionTitle')
|
||||
self.doc.end_cell()
|
||||
self.doc.end_row()
|
||||
|
||||
@ -1182,7 +1182,7 @@ class IndivCompleteOptions(MenuReportOptions):
|
||||
para.set_top_margin(utils.pt2cm(8))
|
||||
para.set_bottom_margin(utils.pt2cm(8))
|
||||
para.set_font(font)
|
||||
para.set_description(_("The style used for the title of the page."))
|
||||
para.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("IDS-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1194,8 +1194,8 @@ class IndivCompleteOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set_top_margin(utils.pt2cm(3))
|
||||
para.set_bottom_margin(utils.pt2cm(3))
|
||||
para.set_description(_("The style used for category labels."))
|
||||
default_style.add_paragraph_style("IDS-TableTitle", para)
|
||||
para.set_description(_("The style used for the section headers."))
|
||||
default_style.add_paragraph_style("IDS-SectionTitle", para)
|
||||
|
||||
font = FontStyle()
|
||||
font.set_bold(1)
|
||||
@ -1218,14 +1218,14 @@ class IndivCompleteOptions(MenuReportOptions):
|
||||
default_style.add_paragraph_style("IDS-Normal", para)
|
||||
|
||||
font = FontStyle()
|
||||
font.set_size(12)
|
||||
font.set_size(32) # SJ "12" not "32"
|
||||
font.set_italic(1)
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_top_margin(utils.pt2cm(3))
|
||||
para.set_bottom_margin(utils.pt2cm(3))
|
||||
para.set_description(_('The style used for the section headers.'))
|
||||
default_style.add_paragraph_style("IDS-Section", para)
|
||||
para.set_description(_('The basic style used for table headings.'))
|
||||
default_style.add_paragraph_style('IDS-TableSection', para)
|
||||
|
||||
font = FontStyle()
|
||||
font.set_size(8)
|
||||
@ -1234,7 +1234,7 @@ class IndivCompleteOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set_top_margin(utils.pt2cm(3))
|
||||
para.set_bottom_margin(utils.pt2cm(3))
|
||||
para.set_description(_('A style used for image facts.'))
|
||||
para.set_description(_('The style used for image notes.'))
|
||||
default_style.add_paragraph_style("IDS-ImageNote", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -1244,8 +1244,8 @@ class IndivCompleteOptions(MenuReportOptions):
|
||||
para.set_font(font)
|
||||
para.set_top_margin(utils.pt2cm(3))
|
||||
para.set_bottom_margin(utils.pt2cm(3))
|
||||
para.set_description(_('A style used for image captions.'))
|
||||
default_style.add_paragraph_style("IDS-ImageCaptionCenter", para)
|
||||
para.set_description(_('The style used for image descriptions.'))
|
||||
default_style.add_paragraph_style("IDS-ImageCaption", para)
|
||||
|
||||
# Table Styles
|
||||
tbl = TableStyle()
|
||||
|
@ -317,8 +317,8 @@ class KinshipReport(Report):
|
||||
death_date = self._get_date(death.get_date_object())
|
||||
dates = ''
|
||||
if birth_date or death_date:
|
||||
dates = self._(" (%(birth_date)s - %(death_date)s)"
|
||||
) % {'birth_date' : birth_date,
|
||||
dates = " (%(birth_date)s - %(death_date)s)" % {
|
||||
'birth_date' : birth_date,
|
||||
'death_date' : death_date}
|
||||
|
||||
self.doc.start_paragraph('KIN-Normal')
|
||||
@ -400,7 +400,7 @@ class KinshipOptions(MenuReportOptions):
|
||||
para.set_bottom_margin(utils.pt2cm(8))
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_("The style used for the title of the page."))
|
||||
para.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("KIN-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -410,7 +410,7 @@ class KinshipOptions(MenuReportOptions):
|
||||
para.set_header_level(3)
|
||||
para.set_font(font)
|
||||
para.set_top_margin(utils.pt2cm(6))
|
||||
para.set_description(_('The basic style used for sub-headings.'))
|
||||
para.set_description(_('The style used for second level headings.'))
|
||||
default_style.add_paragraph_style("KIN-Subtitle", para)
|
||||
|
||||
font = FontStyle()
|
||||
|
@ -183,7 +183,7 @@ class NoteLinkOptions(MenuReportOptions):
|
||||
p.set_bottom_margin(utils.pt2cm(3))
|
||||
p.set_font(f)
|
||||
p.set_alignment(PARA_ALIGN_CENTER)
|
||||
p.set_description(_("The style used for the title of the page."))
|
||||
p.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("NoteLink-Title", p)
|
||||
|
||||
font = FontStyle()
|
||||
|
@ -224,7 +224,7 @@ class NumberOfAncestorsOptions(MenuReportOptions):
|
||||
para.set_bottom_margin(utils.pt2cm(8))
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_("The style used for the title of the page."))
|
||||
para.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("NOA-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
|
@ -491,7 +491,7 @@ class PlaceOptions(MenuReportOptions):
|
||||
para.set_top_margin(0.25)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_('The style used for the title of the report.'))
|
||||
para.set_description(_('The style used for the title.'))
|
||||
self.default_style.add_paragraph_style("PLC-ReportTitle", para)
|
||||
|
||||
def __report_subtitle_style(self):
|
||||
@ -520,7 +520,7 @@ class PlaceOptions(MenuReportOptions):
|
||||
para.set(first_indent=-1.5, lmargin=1.5)
|
||||
para.set_top_margin(0.75)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for place title.'))
|
||||
para.set_description(_('The style used for the section headers.'))
|
||||
self.default_style.add_paragraph_style("PLC-PlaceTitle", para)
|
||||
|
||||
def __place_details_style(self):
|
||||
@ -532,7 +532,7 @@ class PlaceOptions(MenuReportOptions):
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set(first_indent=0.0, lmargin=1.5)
|
||||
para.set_description(_('The style used for place details.'))
|
||||
para.set_description(_('The style used for details.'))
|
||||
self.default_style.add_paragraph_style("PLC-PlaceDetails", para)
|
||||
|
||||
def __column_title_style(self):
|
||||
@ -544,7 +544,7 @@ class PlaceOptions(MenuReportOptions):
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set(first_indent=0.0, lmargin=0.0)
|
||||
para.set_description(_('The style used for a column title.'))
|
||||
para.set_description(_('The basic style used for table headings.'))
|
||||
self.default_style.add_paragraph_style("PLC-ColumnTitle", para)
|
||||
|
||||
def __section_style(self):
|
||||
@ -558,7 +558,7 @@ class PlaceOptions(MenuReportOptions):
|
||||
para.set(first_indent=-1.5, lmargin=1.5)
|
||||
para.set_top_margin(0.5)
|
||||
para.set_bottom_margin(0.25)
|
||||
para.set_description(_('The style used for each section.'))
|
||||
para.set_description(_('The basic style used for the text display.'))
|
||||
self.default_style.add_paragraph_style("PLC-Section", para)
|
||||
|
||||
def __event_table_style(self):
|
||||
@ -589,7 +589,7 @@ class PlaceOptions(MenuReportOptions):
|
||||
font.set(face=FONT_SERIF, size=10)
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_description(_('The style used for event and person details.'))
|
||||
para.set_description(_('The style used for the items and values.'))
|
||||
self.default_style.add_paragraph_style("PLC-Details", para)
|
||||
|
||||
def __cell_style(self):
|
||||
|
@ -325,7 +325,7 @@ class RecordsReportOptions(MenuReportOptions):
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_top_margin(utils.pt2cm(6))
|
||||
para.set_description(_('The style used for headings.'))
|
||||
para.set_description(_('The style used for the section headers.'))
|
||||
default_style.add_paragraph_style('REC-Heading', para)
|
||||
|
||||
font = FontStyle()
|
||||
|
@ -160,7 +160,7 @@ class SimpleBookTitleOptions(MenuReportOptions):
|
||||
menu.add_option(category_name, "imgsize", imgsize)
|
||||
|
||||
def make_default_style(self, default_style):
|
||||
"""Make the default output style for the Simple Boot Title report."""
|
||||
"""Make the default output style for the Simple Book Title report."""
|
||||
font = FontStyle()
|
||||
font.set(face=FONT_SANS_SERIF, size=16, bold=1, italic=1)
|
||||
para = ParagraphStyle()
|
||||
@ -168,7 +168,7 @@ class SimpleBookTitleOptions(MenuReportOptions):
|
||||
para.set_header_level(1)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set(pad=0.5)
|
||||
para.set_description(_('The style used for the title of the page.'))
|
||||
para.set_description(_('The style used for the title.'))
|
||||
default_style.add_paragraph_style("SBT-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
|
@ -308,7 +308,7 @@ class SummaryOptions(MenuReportOptions):
|
||||
para.set_bottom_margin(utils.pt2cm(3))
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_("The style used for the title of the page."))
|
||||
para.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("SR-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
@ -317,7 +317,7 @@ class SummaryOptions(MenuReportOptions):
|
||||
para = ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_top_margin(0)
|
||||
para.set_description(_('The basic style used for sub-headings.'))
|
||||
para.set_description(_('The style used for second level headings.'))
|
||||
default_style.add_paragraph_style("SR-Heading", para)
|
||||
|
||||
font = FontStyle()
|
||||
|
@ -930,7 +930,7 @@ class TagOptions(MenuReportOptions):
|
||||
para.set_bottom_margin(utils.pt2cm(3))
|
||||
para.set_font(font)
|
||||
para.set_alignment(PARA_ALIGN_CENTER)
|
||||
para.set_description(_("The style used for the title of the page."))
|
||||
para.set_description(_("The style used for the title."))
|
||||
default_style.add_paragraph_style("TR-Title", para)
|
||||
|
||||
font = FontStyle()
|
||||
|
Loading…
Reference in New Issue
Block a user