mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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())
|
unittest.TextTestRunner(verbosity=2).run(suite())
|
||||||
|
|
||||||
def option_parser():
|
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):
|
def main(args=sys.argv):
|
||||||
parser = option_parser()
|
parser = option_parser()
|
||||||
@ -959,6 +961,9 @@ def main(args=sys.argv):
|
|||||||
if opts.comment is not None:
|
if opts.comment is not None:
|
||||||
mi.comments = opts.comment
|
mi.comments = opts.comment
|
||||||
write = True
|
write = True
|
||||||
|
if opts.language is not None:
|
||||||
|
mi.language = opts.language
|
||||||
|
write = True
|
||||||
if write:
|
if write:
|
||||||
mo = OPFCreator(basedir, mi)
|
mo = OPFCreator(basedir, mi)
|
||||||
ncx = cStringIO.StringIO()
|
ncx = cStringIO.StringIO()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user