UI refactoring (part 1) #1092

Merged
g1itch merged 20 commits from ui-refactoring into v0.6 2018-01-30 17:32:38 +01:00
Showing only changes of commit 641db73614 - Show all commits

View File

@ -11,11 +11,7 @@ except Exception as err:
import sys import sys
sys.exit() sys.exit()
try: from tr import _translate
_encoding = QtGui.QApplication.UnicodeUTF8
except AttributeError:
logger.exception('QtGui.QApplication.UnicodeUTF8 error', exc_info=True)
from addresses import * from addresses import *
import shared import shared
from bitmessageui import * from bitmessageui import *
@ -70,12 +66,6 @@ except ImportError:
get_plugins = False 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): def change_translation(newlocale):
global qmytranslator, qsystranslator global qmytranslator, qsystranslator
try: try: