Cleanup of alphabet navigation bar's title
svn: r18053
This commit is contained in:
parent
02d05a3d4b
commit
6befeb2c3b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user