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