mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 21:04:44 +01:00
Content server: Fix series field blank in Italian translation
This commit is contained in:
parent
6e91a17650
commit
eb1d951802
1 changed files with 7 additions and 2 deletions
|
|
@ -269,8 +269,13 @@ def process_series(field, fm, name, val):
|
|||
ival = fmt_sidx(ival, use_roman=interface_data.use_roman_numerals_for_series_number)
|
||||
table.appendChild(E.tr(E.td(name + ':'), E.td()))
|
||||
s = safe_set_inner_html(E.span(), _('{0} of <a>{1}</a>').format(ival, val))
|
||||
s.lastChild.setAttribute('href', href_for_search(field, val))
|
||||
s.lastChild.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val))
|
||||
a = s.getElementsByTagName('a')
|
||||
if a and a.length:
|
||||
a = a[0]
|
||||
a.setAttribute('href', href_for_search(field, val))
|
||||
a.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val))
|
||||
else:
|
||||
print("WARNING: Translation of series template is incorrect as it does not have an <a> tag")
|
||||
table.lastChild.lastChild.appendChild(s)
|
||||
|
||||
def process_field(field, fm):
|
||||
|
|
|
|||
Loading…
Reference in a new issue