aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-23 22:35:30 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-23 22:35:55 +0200
commitdaaee738fcdcb6b319b522ee40bc26a95c8a7ad3 (patch)
treea79edc230d003e8f3237b2efc7ef61594c0875f4 /src/qt/bitcoin.cpp
parent47c6215c223ac85eeb31504aa2a56369bdfb3789 (diff)
experiment with internationalization (nl), unbreak build (externui.h->qtui.h)
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