Removed unused _encoding and _transalate

This commit is contained in:
Dmitri Bogomolov 2018-01-22 15:19:02 +02:00
parent 25876ded2b
commit 641db73614
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -11,11 +11,7 @@ except Exception as err:
import sys
sys.exit()
try:
_encoding = QtGui.QApplication.UnicodeUTF8
except AttributeError:
logger.exception('QtGui.QApplication.UnicodeUTF8 error', exc_info=True)
from tr import _translate
from addresses import *
import shared
from bitmessageui import *
@ -70,12 +66,6 @@ except ImportError:
get_plugins = False
def _translate(context, text, disambiguation = None, encoding = None, number = None):
if number is None:
return QtGui.QApplication.translate(context, text)
else:
return QtGui.QApplication.translate(context, text, None, QtCore.QCoreApplication.CodecForTr, number)
def change_translation(newlocale):
global qmytranslator, qsystranslator
try: