i18n added

This commit is contained in:
Fabian Graßl 2010-10-15 12:21:22 +02:00
parent c98887eddb
commit c6b2f72795
3 changed files with 10 additions and 5 deletions

View File

@ -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>

View File

@ -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">

View File

@ -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