Cleanup of alphabet navigation bar's title

svn: r18053
This commit is contained in:
Rob G. Healey 2011-08-23 07:21:43 +00:00
parent 02d05a3d4b
commit 6befeb2c3b

View File

@ -7075,7 +7075,7 @@ def alphabet_navigation(menu_set):
num_of_rows = ((num_ltrs // num_of_cols) + 1) num_of_rows = ((num_ltrs // num_of_cols) + 1)
# begin alphabet navigation division # begin alphabet navigation division
with Html("div", id = "alphabet") as alphabetnavigation: with Html("div", id ="alphabet") as alphabetnavigation:
index = 0 index = 0
for row in xrange(num_of_rows): for row in xrange(num_of_rows):
@ -7090,13 +7090,12 @@ def alphabet_navigation(menu_set):
menu_item = sorted_alpha_index[index] menu_item = sorted_alpha_index[index]
# adding title to hyperlink menu for screen readers and braille writers # adding title to hyperlink menu for screen readers and braille writers
title_str = _("Alphabet Navigation Menu Item " + menu_item) title_str = _("Alphabet Letter: ") + menu_item
if lang_country == "sv_SE" and menu_item == u'V': if lang_country == "sv_SE" and menu_item == u'V':
hyper = Html("a", "V,W", href = "#V,W", title = "V,W") hyper = Html("a", "V,W", href = "#V,W", title = "V,W")
else: else:
hyper = Html("a", menu_item, href = "#%s" % menu_item) hyper = Html("a", menu_item, href ="#" + menu_item, title = title_str)
hyper.attr += ' title = "%s"' % title_str
li += hyper li += hyper
# increase letter/ word in sorted_alpha_index # increase letter/ word in sorted_alpha_index