From 2a8388d26270ea58030206e6163b827c9700ec3f Mon Sep 17 00:00:00 2001 From: bendikro Date: Tue, 24 May 2016 14:43:40 +0200 Subject: [PATCH] [UI] Fix translation setup in console Console was incorrectly setting up pygtk translation --- deluge/ui/console/console.py | 2 +- deluge/ui/ui.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/console/console.py b/deluge/ui/console/console.py index 77170ee97..4c70ead0e 100644 --- a/deluge/ui/console/console.py +++ b/deluge/ui/console/console.py @@ -54,7 +54,7 @@ class Console(UI): cmd_description = """Console or command-line user interface""" 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 " "used for commands, or if console ui autoconnect is enabled.") diff --git a/deluge/ui/ui.py b/deluge/ui/ui.py index 591336201..13334253e 100644 --- a/deluge/ui/ui.py +++ b/deluge/ui/ui.py @@ -31,10 +31,10 @@ class UI(object): """ cmd_description = """Override with command description""" - def __init__(self, name="gtk", **kwargs): + def __init__(self, name, **kwargs): self.__name = name self.ui_args = kwargs.pop("ui_args", None) - lang.setup_translations(setup_pygtk=(name == "gtk")) + lang.setup_translations() self.__parser = BaseArgParser(**kwargs) def parse_args(self, parser, args=None):