1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2025-12-18 13:10:17 +01:00

Remove leftovers from gettext translations

This commit is contained in:
2020-09-30 19:02:22 +02:00
parent db55fd4df7
commit ee232b76d6
2 changed files with 13 additions and 8 deletions

View File

@@ -149,14 +149,19 @@ class LRFDocument(LRFMetaFile):
objects += '</Objects>\n'
if write_files:
self.write_files()
return '<BBeBXylog version="1.0">\n' + bookinfo + pages + styles + objects + '</BBeBXylog>'
return ('<BBeBXylog version="1.0">\n' + bookinfo + pages + styles +
objects + '</BBeBXylog>')
def option_parser():
parser = OptionParser(usage=_('%prog book.lrf\nConvert an LRF file into an LRS (XML UTF-8 encoded) file'))
parser.add_option('--output', '-o', default=None, help=_('Output LRS file'), dest='out')
parser.add_option('--dont-output-resources', default=True, action='store_false',
help=_('Do not save embedded image and font files to disk'),
dest='output_resources')
parser.add_option('--verbose', default=False, action='store_true', dest='verbose', help=_('Be more verbose'))
parser = OptionParser(usage='%prog book.lrf\nConvert an LRF file into '
'an LRS (XML UTF-8 encoded) file')
parser.add_option('--output', '-o', default=None,
help='Output LRS file', dest='out')
parser.add_option('--dont-output-resources', default=True,
action='store_false',
help='Do not save embedded image and font files to '
'disk', dest='output_resources')
parser.add_option('--verbose', default=False, action='store_true',
dest='verbose', help='Be more verbose')
return parser

View File

@@ -669,7 +669,7 @@ Show/edit the metadata in an LRF file.\n\n'''),
# LRF is first created. Since this will change as the book is reflowed, it
# is probably not worth using.
# parser.add_option("-p", "--page", action="store", type="string", \
# dest="page", help=_("Don't know what this is for"))
# dest="page", help="Don't know what this is for")
return parser