summaryrefslogtreecommitdiff
path: root/gui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 670e664..73d55cc 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -4,6 +4,7 @@
#include <QApplication>
#include <QSystemTrayIcon>
#include <QTimer>
+#include <QTranslator>
#include <QtQml>
#include <QQmlApplicationEngine>
#include <QQuickWindow>
@@ -56,6 +57,10 @@ int main(int argc, char **argv) {
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
qDebug() << "No systray icon available. Things might not work for now, sorry...";
}
+
+ QTranslator translator;
+ translator.load(QLocale(), QLatin1String("main"), QLatin1String("_"), QLatin1String(":/i18n"));
+ app.installTranslator(&translator);
app.setQuitOnLastWindowClosed(false);
QQmlApplicationEngine engine;