From 7c96ef5b6c21eda1f55c61632ba7c1a63985d3d7 Mon Sep 17 00:00:00 2001 From: Gatien Bovyn Date: Wed, 12 Jun 2013 10:07:04 +0200 Subject: [PATCH] load QTranslator and get locale --- src/bitmessageqt/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 27abc552..0bf88eda 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -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()