Adding named variables to format strings for errors in 'make distcheck' to work.

svn: r14466
This commit is contained in:
Rob G. Healey 2010-02-24 23:06:21 +00:00
parent 8b0b4a3785
commit c9d41950eb

View File

@ -127,7 +127,8 @@ class SimpleBookTitleOptions(MenuReportOptions):
dateinfo = time.localtime(time.time()) dateinfo = time.localtime(time.time())
rname = self.__db.get_researcher().get_name() rname = self.__db.get_researcher().get_name()
footer_string = _('Copyright %d %s') % (dateinfo[0], rname) footer_string = _('Copyright %(year)d %(name)s') % {
'year' : dateinfo[0], 'name' : rname }
footer = StringOption(_('Footer'), footer_string ) footer = StringOption(_('Footer'), footer_string )
footer.set_help(_("Footer string for the page.")) footer.set_help(_("Footer string for the page."))
menu.add_option(category_name, "footer", footer) menu.add_option(category_name, "footer", footer)