mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Content server: Fix series field blank in Italian translation
This commit is contained in:
parent
6e91a17650
commit
eb1d951802
@ -269,8 +269,13 @@ def render_metadata(mi, table, book_id): # {{{
|
|||||||
ival = fmt_sidx(ival, use_roman=interface_data.use_roman_numerals_for_series_number)
|
ival = fmt_sidx(ival, use_roman=interface_data.use_roman_numerals_for_series_number)
|
||||||
table.appendChild(E.tr(E.td(name + ':'), E.td()))
|
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 = safe_set_inner_html(E.span(), _('{0} of <a>{1}</a>').format(ival, val))
|
||||||
s.lastChild.setAttribute('href', href_for_search(field, val))
|
a = s.getElementsByTagName('a')
|
||||||
s.lastChild.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val))
|
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)
|
table.lastChild.lastChild.appendChild(s)
|
||||||
|
|
||||||
def process_field(field, fm):
|
def process_field(field, fm):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user