diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index 8e0e3b45f..940e0c40e 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -289,35 +289,30 @@ class BasePage: value = _dp.parse(time.strftime('%b %d %Y')) value = _dd.display(value) - msg = _('Generated by ' - 'GRAMPS on %(date)s') % { 'date' : value } - of.write('\t
') - of.write(msg) - of.write('\n') + 'GRAMPS on %(date)s') % {'date' : value} + of.write('\t%s
\n' % msg) - of.write('\t') copy_nr = self.report.copyright + text = '' if copy_nr == 0: if self.author: year = time.localtime()[0] - cright = _('© %(year)d %(person)s') % { + text = '© %(year)d %(person)s' % { 'person' : self.author, - 'year' : year } - of.write('%s' % cright) - elif 0 < copy_nr < 7: - text = _CC[copy_nr] - fname = self.report.build_url_fname("somerights20.gif", - 'images', self.up) - text = text % {'gif_fname' : fname} - of.write(text) - of.write('
\n') + 'year' : year} + elif 0 < copy_nr < len(_CC): + fname = os.path.join("images", "somerights20.gif") + fname = self.report.build_url_fname(fname, None, self.up) + text = _CC[copy_nr] % {'gif_fname' : fname} + of.write('\t%s
\n' % text) of.write('\t\n') of.write('\t\t\n') + of.write('\n') of.write('