From c9d41950ebe024c186b799c1ac18686b09fd79c9 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 24 Feb 2010 23:06:21 +0000 Subject: [PATCH] Adding named variables to format strings for errors in 'make distcheck' to work. svn: r14466 --- src/plugins/textreport/SimpleBookTitle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/textreport/SimpleBookTitle.py b/src/plugins/textreport/SimpleBookTitle.py index c7e72a150..a8f5f575f 100644 --- a/src/plugins/textreport/SimpleBookTitle.py +++ b/src/plugins/textreport/SimpleBookTitle.py @@ -127,7 +127,8 @@ class SimpleBookTitleOptions(MenuReportOptions): dateinfo = time.localtime(time.time()) 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.set_help(_("Footer string for the page.")) menu.add_option(category_name, "footer", footer)