load QTranslator and get locale

This commit is contained in:
Gatien Bovyn 2013-06-12 10:07:04 +02:00
parent 7dd57d6181
commit 7c96ef5b6c

View File

@ -2390,6 +2390,9 @@ class UISignaler(QThread):
def run():
app = QtGui.QApplication(sys.argv)
translator = QtCore.QTranslator()
translator.load("translations/bitmessage_"+str(locale.getlocale()[0]))
QtGui.QApplication.installTranslator(translator)
app.setStyleSheet("QStatusBar::item { border: 0px solid black }")
myapp = MyForm()