Modify ↓
#10967 closed defect (fixed)
Show *.po header in page footer if [project] footer is empty
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: |
Fixed showing wrongly *.po header if |
||
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
709 709 'admin_href': admin_href, 710 710 'admin_trac_url': self.env.project_admin_trac_url, 711 711 } 712 footer = self.env.project_footer 712 713 d['chrome'] = { 713 'footer': Markup( translation.gettext(self.env.project_footer))714 'footer': Markup(footer and translation.gettext(footer)) 714 715 } 715 716 if req: 716 717 d['chrome'].update(req.chrome)
I'll commit it right away.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Committed in [11473-11475].