mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1007468 (Untranslated cli strings)
This commit is contained in:
parent
178da653f3
commit
f5f964401d
File diff suppressed because it is too large
Load Diff
@ -89,6 +89,11 @@ class OptionParser(_OptionParser):
|
||||
formatter=CustomHelpFormatter(),
|
||||
conflict_handler=conflict_handler, **kwds)
|
||||
self.gui_mode = gui_mode
|
||||
for o, msg in {'-h':_('show this help message and exit'), '--version':
|
||||
_("show program's version number and exit")}.iteritems():
|
||||
opt = self.get_option(o)
|
||||
if opt is not None:
|
||||
opt.help = msg
|
||||
|
||||
def error(self, msg):
|
||||
if self.gui_mode:
|
||||
|
Loading…
x
Reference in New Issue
Block a user