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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 91881c349a..c8e332419c 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -16,6 +16,7 @@
#include <QLocale>
#include <QTranslator>
#include <QSplashScreen>
+#include <QLibraryInfo>
// Need a global reference for the notifications to find the GUI
BitcoinGUI *guiref;
@@ -119,11 +120,17 @@ int main(int argc, char *argv[])
// Load language file for system locale
QString locale = QLocale::system().name();
+ QTranslator qtTranslator;
+ qtTranslator.load(QLibraryInfo::location(QLibraryInfo::TranslationsPath) + "/qt_" + locale);
+ if (!qtTranslator.isEmpty())
+ app.installTranslator(&qtTranslator);
QTranslator translator;
translator.load(":/translations/"+locale);
if (!translator.isEmpty())
app.installTranslator(&translator);
+ app.setApplicationName(QApplication::translate("main", "Bitcoin Qt"));
+
QSplashScreen splash(QPixmap(":/images/splash"), 0);
splash.show();
splash.setAutoFillBackground(true);