diff --git a/manual/custom.py b/manual/custom.py index 693041e3cc..fe847d6951 100644 --- a/manual/custom.py +++ b/manual/custom.py @@ -97,7 +97,7 @@ def generate_calibredb_help(preamble, app): parser = getattr(cli, cmd+'_option_parser')(*args) if cmd == 'catalog': parser = parser[0] - lines += ['.. _calibredb-'+cmd+':', ''] + lines += ['.. _calibredb-%s-%s:' % (app.config.language, cmd), ''] lines += [cmd, '~'*20, ''] usage = parser.usage.strip() usage = [i for i in usage.replace('%prog', 'calibredb').splitlines()] diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index 8823df9e4d..d566b6c2d4 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -181,7 +181,7 @@ List the books available in the calibre database. ' special field "all" can be used to select all fields.' )%', '.join(sorted(fields))) parser.add_option('--sort-by', default=None, - help=_('The field by which to sort the results.\nAvailable fields: %s\nDefault: %%default')%','.join(sorted(FIELDS))) + help=_('The field by which to sort the results.\nAvailable fields: %s\nDefault: %%default')%', '.join(sorted(FIELDS))) parser.add_option('--ascending', default=False, action='store_true', help=_('Sort results in ascending order')) parser.add_option('-s', '--search', default=None,