From 7fb20468a8b92cb189d439700555b2205fca2c07 Mon Sep 17 00:00:00 2001 From: Gatien Bovyn Date: Thu, 13 Jun 2013 23:42:32 +0200 Subject: [PATCH] trying to resolve _translate undefined --- src/bitmessagemain.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 36c2ff4c..1842dba5 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -52,6 +52,14 @@ import proofofwork # For each stream to which we connect, several outgoingSynSender threads # will exist and will collectively create 8 connections with peers. +try: + from PyQt4 import QtCore, QtGui + _encoding = QtGui.QApplication.UnicodeUTF8 + def _translate(context, text): + return QtGui.QApplication.translate(context, text) +except AttributeError: + print 'Error message:', err + class outgoingSynSender(threading.Thread):