Fix of issue 2935.

svn: r12473
This commit is contained in:
Peter Landgren 2009-04-18 05:59:54 +00:00
parent 31187ac521
commit 430bf797f7

View File

@ -313,8 +313,8 @@ class BasePage:
of.write('\t<div id="alphabet">\n') of.write('\t<div id="alphabet">\n')
of.write('\t\t<ul>\n') of.write('\t\t<ul>\n')
for ltr in sorted_first_letter: for ltr in sorted_first_letter:
title_str = 'Surnames' if key == 0 else 'Places' title_str = _('Surnames') if key == 0 else _('Places')
title_str += ' starting with %s' % ltr title_str += _(' starting with %s') % ltr
of.write('\t\t\t<li class="letters"><a href="#%s" title="%s">%s</a></li>\n' of.write('\t\t\t<li class="letters"><a href="#%s" title="%s">%s</a></li>\n'
% (ltr, title_str, ltr)) % (ltr, title_str, ltr))
of.write('\t\t</ul>\n') of.write('\t\t</ul>\n')
@ -328,8 +328,8 @@ class BasePage:
cols = 0 cols = 0
while (cols <= 26 and index < num_ltrs): while (cols <= 26 and index < num_ltrs):
letter = sorted_first_letter[index] letter = sorted_first_letter[index]
title_str = 'Surnames' if key == 0 else 'Places' title_str = _('Surnames') if key == 0 else _('Places')
title_str += ' starting with %s' % letter title_str += _(' starting with %s') % letter
of.write('\t\t\t<li class="letters"><a href="#%s" title="%s">%s</a></li>\n' of.write('\t\t\t<li class="letters"><a href="#%s" title="%s">%s</a></li>\n'
% (letter, title_str, letter)) % (letter, title_str, letter))
cols += 1 cols += 1