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>
|
||||||
|
|
||||||
<div class="toc">
|
<div class="toc">
|
||||||
<h2>Table of contents</h2>
|
<h2>${print _('Table of contents'),}$</h2>
|
||||||
${print toc()}$
|
${print toc()}$
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -33,11 +33,11 @@ ${head_content}$
|
|||||||
|
|
||||||
<div class="ebookNavigation">
|
<div class="ebookNavigation">
|
||||||
${if prevLink:}$
|
${if prevLink:}$
|
||||||
<a href="${prevLink}$">previous page</a>
|
<a href="${prevLink}$">${print _('previous page'),}$</a>
|
||||||
${:endif}$
|
${:endif}$
|
||||||
|
|
||||||
${if nextLink:}$
|
${if nextLink:}$
|
||||||
<a href="${nextLink}$">next page</a>
|
<a href="${nextLink}$">${print _('next page'),}$</a>
|
||||||
${:endif}$
|
${:endif}$
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -27,11 +27,11 @@ ${:endfor}$
|
|||||||
${:endfor}$
|
${:endfor}$
|
||||||
</div>
|
</div>
|
||||||
<div class="metaAuthor">
|
<div class="metaAuthor">
|
||||||
${print ', '.join(meta.creators())}$
|
${print ', '.join(meta.creators()),}$
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Table of contents</h2>
|
<h2>${print _('Table of contents'),}$</h2>
|
||||||
|
|
||||||
<div class="ebookContent">
|
<div class="ebookContent">
|
||||||
|
|
||||||
|
@ -56,6 +56,11 @@ class HTMLOutput(OutputFormatPlugin):
|
|||||||
return etree.tostring(root, pretty_print=True, encoding='utf-8', xml_declaration=False)
|
return etree.tostring(root, pretty_print=True, encoding='utf-8', xml_declaration=False)
|
||||||
|
|
||||||
def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
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.log = log
|
||||||
self.opts = opts
|
self.opts = opts
|
||||||
output_file = output_path
|
output_file = output_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user