Bug#4891; Translate issues for the menu items outside of the month names. Thank you Jerome Rapinet and JujuLand.

svn: r17523
This commit is contained in:
Rob G. Healey 2011-05-17 18:23:54 +00:00
parent dd9c5aae65
commit 21bb57478a

View File

@ -541,10 +541,10 @@ class WebCalReport(Report):
navs.append(('fullyearlinked', _('Year Glance'), self.fullyear))
# begin month subnavigation
with Html("div", id = "navigation") as section:
with Html("div", id = "navigation") as calendarmenu:
unordered = Html("ul")
section += unordered
calendarmenu += unordered
navs = [(u, n) for u, n, c in navs if c]
for url_fname, nav_text in navs:
@ -574,12 +574,12 @@ class WebCalReport(Report):
elif url_fname == 'fullyearlinked':
myTitle = _('Full year at a Glance')
else:
myTitle = url_fname
unordered += Html("li", attr = cs, inline = True) + (
Html("a", nav_text, href = url, title = myTitle) )
myTitle = _(url_fname)
# return monthnav to its caller
return section
unordered += Html("li", attr = cs, inline = True) + (
Html("a", nav_text, href = url, name = url_fname, title = myTitle) )
return calendarmenu
# ---------------------------------------------------------------------------------------
# Creates the Calendar Table