runtime/WampClient.py
changeset 1890 916099cb8d22
parent 1881 091005ec69c4
child 1891 66043243c246
--- a/runtime/WampClient.py	Tue Jan 09 14:38:45 2018 +0100
+++ b/runtime/WampClient.py	Tue Jan 09 14:42:23 2018 +0100
@@ -85,17 +85,17 @@
     def onLeave(self, details):
         global _WampSession
         _WampSession = None
-        print('WAMP session left')
+        print(_('WAMP session left'))
 
 
 class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
     def clientConnectionFailed(self, connector, reason):
-        print("WAMP Client connection failed .. retrying ..")
         self.retry(connector)
+        print(_("WAMP Client connection failed .. retrying .."))
 
     def clientConnectionLost(self, connector, reason):
-        print("WAMP Client connection lost .. retrying ..")
         self.retry(connector)
+        print(_("WAMP Client connection lost .. retrying .."))
 
 
 def LoadWampClientConf(wampconf):
@@ -129,7 +129,7 @@
 
     # start the client from a Twisted endpoint
     conn = connectWS(transport_factory)
-    print("WAMP client connecting to :", WSClientConf["url"])
+    print(_("WAMP client connecting to :"), _WSClientConf["url"])
     return conn