Changed a gettext string (home -> active); only show home link if person is selected

svn: r15181
This commit is contained in:
Doug Blank 2010-04-17 13:14:50 +00:00
parent fbac7a716d
commit ee4f0923aa

View File

@ -927,7 +927,7 @@ class BasePage(object):
# optional "link-home" feature; see bug report #2736 # optional "link-home" feature; see bug report #2736
if self.report.options['linkhome']: if self.report.options['linkhome']:
center_person = db.get_person_from_gramps_id(self.report.options['pid']) center_person = db.get_person_from_gramps_id(self.report.options['pid'])
if center_person: if center_person and center_person.handle in self.report.person_handles:
center_person_url = self.report.build_url_fname_html( center_person_url = self.report.build_url_fname_html(
center_person.handle, "ppl", self.up) center_person.handle, "ppl", self.up)
@ -5891,8 +5891,8 @@ class NavWebOptions(MenuReportOptions):
encoding.set_help( _("The encoding to be used for the web files")) encoding.set_help( _("The encoding to be used for the web files"))
menu.add_option(category_name, "encoding", encoding) menu.add_option(category_name, "encoding", encoding)
linkhome = BooleanOption(_('Include link to home person on every page'), False) linkhome = BooleanOption(_('Include link to active person on every page'), False)
linkhome.set_help(_('Whether to include a link to the home person')) linkhome.set_help(_('Include a link to the active person (if they have a webpage)'))
menu.add_option(category_name, 'linkhome', linkhome) menu.add_option(category_name, 'linkhome', linkhome)
showbirth = BooleanOption(_("Include a column for birth dates on the index pages"), True) showbirth = BooleanOption(_("Include a column for birth dates on the index pages"), True)