Edgewall Software

Opened 11 years ago

Last modified 11 years ago

#10967 closed defect

Show *.po header in page footer if [project] footer is empty — at Initial Version

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 0.12.5
Component: i18n Version: 0.12-stable
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

If [project] footer in trac.ini is empty, Trac wrongly shows *.po header in the page footer.

Real world examples → google:'"Powered by Trac" "Project-Id-Version: Trac" "Report-Msgid-Bugs-To: trac-dev@googlegroups.com POT-Creation-Date"'

  • trac/web/chrome.py

     
    709709            'admin_href': admin_href,
    710710            'admin_trac_url': self.env.project_admin_trac_url,
    711711        }
     712        footer = self.env.project_footer
    712713        d['chrome'] = {
    713             'footer': Markup(translation.gettext(self.env.project_footer))
     714            'footer': Markup(footer and translation.gettext(footer))
    714715        }
    715716        if req:
    716717            d['chrome'].update(req.chrome)

I'll commit it right away.

Change History (0)

Note: See TracTickets for help on using tickets.