mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix #1223 (opf-meta has no language setting option)
This commit is contained in:
parent
3aa67005ea
commit
f30e2cc510
@ -934,7 +934,9 @@ def test():
|
||||
unittest.TextTestRunner(verbosity=2).run(suite())
|
||||
|
||||
def option_parser():
|
||||
return get_parser('opf')
|
||||
parser = get_parser('opf')
|
||||
parser.add_option('--language', default=None, help=_('Set the dc:language field'))
|
||||
return parser
|
||||
|
||||
def main(args=sys.argv):
|
||||
parser = option_parser()
|
||||
@ -959,6 +961,9 @@ def main(args=sys.argv):
|
||||
if opts.comment is not None:
|
||||
mi.comments = opts.comment
|
||||
write = True
|
||||
if opts.language is not None:
|
||||
mi.language = opts.language
|
||||
write = True
|
||||
if write:
|
||||
mo = OPFCreator(basedir, mi)
|
||||
ncx = cStringIO.StringIO()
|
||||
|
Loading…
x
Reference in New Issue
Block a user