enable translated output for this report

svn: r22134
This commit is contained in:
Paul Franklin 2013-05-01 17:38:28 +00:00
parent eca2313b31
commit 3ab598d8f9

View File

@ -117,6 +117,8 @@ class HourGlassReport(Report):
if name_format != 0:
self._name_display.set_default_format(name_format)
self.set_locale(menu.get_option_by_name('trans').get_value())
def write_report(self):
"""
Generate the report.
@ -185,13 +187,13 @@ class HourGlassReport(Report):
birth_evt = get_birth_or_fallback(self.__db, person)
if birth_evt:
birth = get_date(birth_evt)
birth = self._get_date(birth_evt.get_date_object())
else:
birth = ""
death_evt = get_death_or_fallback(self.__db, person)
if death_evt:
death = get_date(death_evt)
death = self._get_date(death_evt.get_date_object())
else:
death = ""
@ -208,7 +210,7 @@ class HourGlassReport(Report):
label = ""
marriage = ReportUtils.find_marriage(self.__db, family)
if marriage:
label = get_date(marriage)
label = self._get_date(marriage.get_date_object())
color = ""
fill = ""
style = "solid"
@ -284,6 +286,8 @@ class HourGlassOptions(MenuReportOptions):
"include in the graph"))
menu.add_option(category_name, "maxascend", max_gen)
stdoptions.add_localization_option(menu, category_name)
################################
category_name = _("Graph Style")
################################