mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
e737f3c98a
commit
69806aff7b
@ -40,7 +40,7 @@ def write_dirtied(db):
|
|||||||
|
|
||||||
def get_parser(usage):
|
def get_parser(usage):
|
||||||
parser = OptionParser(usage)
|
parser = OptionParser(usage)
|
||||||
go = parser.add_option_group('GLOBAL OPTIONS')
|
go = parser.add_option_group(_('GLOBAL OPTIONS'))
|
||||||
go.add_option('--library-path', '--with-library', default=None, help=_('Path to the calibre library. Default is to use the path stored in the settings.'))
|
go.add_option('--library-path', '--with-library', default=None, help=_('Path to the calibre library. Default is to use the path stored in the settings.'))
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: calibre 0.8.54\n"
|
"Project-Id-Version: calibre 0.8.54\n"
|
||||||
"POT-Creation-Date: 2012-06-01 21:10+IST\n"
|
"POT-Creation-Date: 2012-06-01 23:16+IST\n"
|
||||||
"PO-Revision-Date: 2012-06-01 21:10+IST\n"
|
"PO-Revision-Date: 2012-06-01 23:16+IST\n"
|
||||||
"Last-Translator: Automatically generated\n"
|
"Last-Translator: Automatically generated\n"
|
||||||
"Language-Team: LANGUAGE\n"
|
"Language-Team: LANGUAGE\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -3072,7 +3072,7 @@ msgid "Producer"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/book/base.py:773
|
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/book/base.py:773
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:939
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:937
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/metadata_sources.py:157
|
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/metadata_sources.py:157
|
||||||
#: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:245
|
#: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:245
|
||||||
msgid "Comments"
|
msgid "Comments"
|
||||||
@ -3218,7 +3218,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1434
|
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1434
|
||||||
#: /home/kovid/work/calibre/src/calibre/ebooks/oeb/base.py:1273
|
#: /home/kovid/work/calibre/src/calibre/ebooks/oeb/base.py:1273
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:951
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:949
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
|
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
|
||||||
msgid "Cover"
|
msgid "Cover"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -8397,7 +8397,7 @@ msgid "Standard metadata"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/metadata_bulk.py:62
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/metadata_bulk.py:62
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:920
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:919
|
||||||
msgid "Custom metadata"
|
msgid "Custom metadata"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -11299,7 +11299,7 @@ msgid "Save changes and edit the metadata of %s"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:610
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:610
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:814
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:813
|
||||||
msgid "Change cover"
|
msgid "Change cover"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -11308,7 +11308,7 @@ msgid "Co&mments"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:708
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:708
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:855
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:854
|
||||||
msgid "&Metadata"
|
msgid "&Metadata"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -11320,11 +11320,11 @@ msgstr ""
|
|||||||
msgid "C&ustom metadata"
|
msgid "C&ustom metadata"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:795
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:794
|
||||||
msgid "&Comments"
|
msgid "&Comments"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:861
|
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:860
|
||||||
msgid "Basic metadata"
|
msgid "Basic metadata"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -15765,6 +15765,10 @@ msgstr ""
|
|||||||
msgid "Folders raising exception"
|
msgid "Folders raising exception"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: /home/kovid/work/calibre/src/calibre/library/cli.py:43
|
||||||
|
msgid "GLOBAL OPTIONS"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/library/cli.py:44
|
#: /home/kovid/work/calibre/src/calibre/library/cli.py:44
|
||||||
msgid "Path to the calibre library. Default is to use the path stored in the settings."
|
msgid "Path to the calibre library. Default is to use the path stored in the settings."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -16689,11 +16693,15 @@ msgstr ""
|
|||||||
msgid "Whenever you pass arguments to %prog that have spaces in them, enclose the arguments in quotation marks."
|
msgid "Whenever you pass arguments to %prog that have spaces in them, enclose the arguments in quotation marks."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/utils/config.py:92
|
#: /home/kovid/work/calibre/src/calibre/utils/config.py:94
|
||||||
|
msgid "Options"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: /home/kovid/work/calibre/src/calibre/utils/config.py:95
|
||||||
msgid "show this help message and exit"
|
msgid "show this help message and exit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/utils/config.py:93
|
#: /home/kovid/work/calibre/src/calibre/utils/config.py:96
|
||||||
msgid "show program's version number and exit"
|
msgid "show program's version number and exit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -89,11 +89,11 @@ class OptionParser(_OptionParser):
|
|||||||
formatter=CustomHelpFormatter(),
|
formatter=CustomHelpFormatter(),
|
||||||
conflict_handler=conflict_handler, **kwds)
|
conflict_handler=conflict_handler, **kwds)
|
||||||
self.gui_mode = gui_mode
|
self.gui_mode = gui_mode
|
||||||
for o, msg in {'-h':_('show this help message and exit'), '--version':
|
if False:
|
||||||
_("show program's version number and exit")}.iteritems():
|
# Translatable string from optparse
|
||||||
opt = self.get_option(o)
|
_("Options")
|
||||||
if opt is not None:
|
_("show this help message and exit")
|
||||||
opt.help = msg
|
_("show program's version number and exit")
|
||||||
|
|
||||||
def error(self, msg):
|
def error(self, msg):
|
||||||
if self.gui_mode:
|
if self.gui_mode:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user