summaryrefslogtreecommitdiffstats
path: root/module/gui
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-02-14 17:47:24 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-02-14 17:47:24 +0100
commit52286f079a07bd8425e1edd879fcaa729cf99773 (patch)
treef0e8081ec7809de25e29d790cdc388e66289c586 /module/gui
parentgui account add fix (diff)
downloadpyload-52286f079a07bd8425e1edd879fcaa729cf99773.tar.xz
closes #232
Diffstat (limited to 'module/gui')
-rw-r--r--module/gui/connector.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py
index c594ae5e1..24af91993 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -67,13 +67,13 @@ class Connector(QObject):
try:
client = ThriftClient(self.host, self.port, self.user, self.password)
except WrongLogin:
- self.emit(SIGNAL("error_box"), "bad login credentials")
+ self.emit(SIGNAL("errorBox"), _("bad login credentials"))
return False
except NoSSL:
- self.emit(SIGNAL("error_box"), "no ssl support")
+ self.emit(SIGNAL("errorBox"), _("no ssl support"))
return False
except NoConnection:
- self.emit(SIGNAL("connectionLost"))
+ self.emit(SIGNAL("errorBox"), _("can't connect to host"))
return False
self.proxy = DispatchRPC(self.mutex, client)
@@ -83,7 +83,7 @@ class Connector(QObject):
self.connectionID = uuid().hex
if not server_version == SERVER_VERSION:
- self.emit(SIGNAL("errorBox"), "server is version %s client accepts version %s" % (server_version, SERVER_VERSION))
+ self.emit(SIGNAL("errorBox"), _("server is version %s client accepts version %s") % (server_version, SERVER_VERSION))
return False
return True