reenable translated report title

svn: r22073
This commit is contained in:
Paul Franklin 2013-04-22 18:17:24 +00:00
parent 59ed4f8a8f
commit 42f014efeb

View File

@ -112,15 +112,15 @@ class AncestorReport(Report):
if name_format != 0: if name_format != 0:
self._name_display.set_default_format(name_format) self._name_display.set_default_format(name_format)
title_name = self._name_display.display_formal(self.center_person)
title_format = menu.get_option_by_name('title_format').get_value()
self.title = title_format % title_name
lang = menu.get_option_by_name('trans').get_value() lang = menu.get_option_by_name('trans').get_value()
locale = self.set_locale(lang) locale = self.set_locale(lang)
self.__narrator = Narrator(self.database, use_fulldate=True, self.__narrator = Narrator(self.database, use_fulldate=True,
locale=locale) locale=locale)
title_name = self._name_display.display_formal(self.center_person)
title_format = menu.get_option_by_name('title_format').get_value()
self.title = self._(title_format) % title_name
def apply_filter(self, person_handle, index, generation=1): def apply_filter(self, person_handle, index, generation=1):
""" """
Recursive function to walk back all parents of the current person. Recursive function to walk back all parents of the current person.