mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
experiment with internationalization (nl), unbreak build (externui.h->qtui.h)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user