mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 06:16:29 +00:00
[UI] Fix translation setup in console
Console was incorrectly setting up pygtk translation
This commit is contained in:
parent
4751b33d0c
commit
2a8388d262
@ -54,7 +54,7 @@ class Console(UI):
|
|||||||
cmd_description = """Console or command-line user interface"""
|
cmd_description = """Console or command-line user interface"""
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Console, self).__init__(*args, **kwargs)
|
super(Console, self).__init__("console", *args, **kwargs)
|
||||||
|
|
||||||
group = self.parser.add_argument_group(_("Console Options"), "These daemon connect options will be "
|
group = self.parser.add_argument_group(_("Console Options"), "These daemon connect options will be "
|
||||||
"used for commands, or if console ui autoconnect is enabled.")
|
"used for commands, or if console ui autoconnect is enabled.")
|
||||||
|
@ -31,10 +31,10 @@ class UI(object):
|
|||||||
"""
|
"""
|
||||||
cmd_description = """Override with command description"""
|
cmd_description = """Override with command description"""
|
||||||
|
|
||||||
def __init__(self, name="gtk", **kwargs):
|
def __init__(self, name, **kwargs):
|
||||||
self.__name = name
|
self.__name = name
|
||||||
self.ui_args = kwargs.pop("ui_args", None)
|
self.ui_args = kwargs.pop("ui_args", None)
|
||||||
lang.setup_translations(setup_pygtk=(name == "gtk"))
|
lang.setup_translations()
|
||||||
self.__parser = BaseArgParser(**kwargs)
|
self.__parser = BaseArgParser(**kwargs)
|
||||||
|
|
||||||
def parse_args(self, parser, args=None):
|
def parse_args(self, parser, args=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user