aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 917355e764..7d5712f4aa 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -6,11 +6,13 @@
#include "util.h"
#include "init.h"
#include "main.h"
-#include "externui.h"
+#include "qtui.h"
#include <QApplication>
#include <QMessageBox>
#include <QThread>
+#include <QLocale>
+#include <QTranslator>
// Need a global reference for the notifications to find the GUI
BitcoinGUI *guiref;
@@ -98,6 +100,13 @@ int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(bitcoin);
QApplication app(argc, argv);
+
+ // Load language file for system locale
+ QString locale = QLocale::system().name();
+ QTranslator translator;
+ translator.load("bitcoin_"+locale);
+ app.installTranslator(&translator);
+
app.setQuitOnLastWindowClosed(false);
try