From 61f262a339126c79f9553c1a69ce00964597e369 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 22 Apr 2010 01:27:53 +0000 Subject: [PATCH] Added title and alt attributes to images and http links for better ability for screen readers and braille writers. These changes make it so that the devices can read the page to its users. svn: r15257 --- src/plugins/webreport/WebCal.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index af920120f..a4355e1d3 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -500,10 +500,11 @@ class WebCalReport(Report): # Figure out if we need
  • or just plain
  • cs = str(cal_year) == currentsection and 'class="CurrentSection"' or '' - unordered += Html("li", attr=cs, inline = True) + ( + unordered += Html("li", attr = cs, inline = True) + ( # create hyperlink - Html("a", str(cal_year), href = url, title = "Year %04d" % cal_year, inline = True) + Html("a", str(cal_year), href = url, title = _("Sub Navigation Menu Item: " + "Year %04d" % cal_year), inline = True) ) # return yearnav to its caller @@ -572,7 +573,7 @@ class WebCalReport(Report): unordered += Html("li", attr = cs, inline = True) + ( # create hyperlink - Html("a", nav_text, href = url, title=url_fname, inline = True) + Html("a", nav_text, href = url, title = _("Main Navigation Menu Item: %s" % url_fname), inline = True) ) # return monthnav to its caller @@ -1104,8 +1105,7 @@ class WebCalReport(Report): birth_date = birth_event.get_date_object() # determine birthday information??? - if (self.birthday and birth_date is not gen.lib.Date.EMPTY - and birth_date.is_valid()): + if (self.birthday and birth_date is not gen.lib.Date.EMPTY and birth_date.is_valid()): year = birth_date.get_year() or this_year month = birth_date.get_month() @@ -1134,7 +1134,7 @@ class WebCalReport(Report): father = db.get_person_from_handle(father_handle) if father is not None: father_surname = _get_regular_surname(person.gender, - father.primary_name) + father.get_primary_name()) short_name = self.get_name(person, father_surname) alive = probably_alive(person, db, prob_alive_date) if (self.alive and alive) or not self.alive: