Fix #1892579 [[Translation] Parts of the calibredb section in the User Manual are not translatable](https://bugs.launchpad.net/calibre/+bug/1892579)

This commit is contained in:
Kovid Goyal 2020-08-24 12:29:20 +05:30
parent 984bb98fc7
commit dec4ad041f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1,16 +1,15 @@
#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
# License: GPLv3 Copyright: 2008, Kovid Goyal <kovid at kovidgoyal.net>
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
import os, re, textwrap
import os
import re
from functools import partial
from sphinx.util.console import bold
from sphinx.util.logging import getLogger
from calibre.linux import entry_points, cli_index_strings
from calibre.linux import cli_index_strings, entry_points
from epub import EPUBHelpBuilder
from latex import LaTeXHelpBuilder
@ -94,8 +93,8 @@ def titlecase(app, x):
def generate_calibredb_help(preamble, app):
from calibre.db.cli.main import COMMANDS, option_parser_for, get_parser
preamble = preamble[:preamble.find('\n\n\n', preamble.find('code-block'))]
preamble += textwrap.dedent('''
preamble += '\n\n'
preamble += _('''\
:command:`calibredb` is the command line interface to the calibre database. It has
several sub-commands, documented below.