mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
i18n added
This commit is contained in:
parent
c98887eddb
commit
c6b2f72795
@ -23,7 +23,7 @@ ${head_content}$
|
||||
</div>
|
||||
|
||||
<div class="toc">
|
||||
<h2>Table of contents</h2>
|
||||
<h2>${print _('Table of contents'),}$</h2>
|
||||
${print toc()}$
|
||||
</div>
|
||||
|
||||
@ -33,11 +33,11 @@ ${head_content}$
|
||||
|
||||
<div class="ebookNavigation">
|
||||
${if prevLink:}$
|
||||
<a href="${prevLink}$">previous page</a>
|
||||
<a href="${prevLink}$">${print _('previous page'),}$</a>
|
||||
${:endif}$
|
||||
|
||||
${if nextLink:}$
|
||||
<a href="${nextLink}$">next page</a>
|
||||
<a href="${nextLink}$">${print _('next page'),}$</a>
|
||||
${:endif}$
|
||||
</div>
|
||||
|
||||
|
@ -27,11 +27,11 @@ ${:endfor}$
|
||||
${:endfor}$
|
||||
</div>
|
||||
<div class="metaAuthor">
|
||||
${print ', '.join(meta.creators())}$
|
||||
${print ', '.join(meta.creators()),}$
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Table of contents</h2>
|
||||
<h2>${print _('Table of contents'),}$</h2>
|
||||
|
||||
<div class="ebookContent">
|
||||
|
||||
|
@ -56,6 +56,11 @@ class HTMLOutput(OutputFormatPlugin):
|
||||
return etree.tostring(root, pretty_print=True, encoding='utf-8', xml_declaration=False)
|
||||
|
||||
def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
||||
if oeb_book.toc.count() == 0:
|
||||
if len(oeb_book.spine) > 1:
|
||||
pass
|
||||
else:
|
||||
pass
|
||||
self.log = log
|
||||
self.opts = opts
|
||||
output_file = output_path
|
||||
|
Loading…
x
Reference in New Issue
Block a user