mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-06 22:24:17 +02:00
Add English and German UI localization
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#include <QApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QIcon>
|
||||
#include <QLocale>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlContext>
|
||||
#include <QTranslator>
|
||||
|
||||
#include "radiobackend.h"
|
||||
#include "mprisadaptor.h"
|
||||
@@ -20,6 +22,11 @@ int main(int argc, char *argv[])
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("org.kde.bearwave")));
|
||||
app.setQuitOnLastWindowClosed(false);
|
||||
|
||||
QTranslator appTranslator;
|
||||
if (appTranslator.load(QLocale::system(), QStringLiteral("bearwave"), QStringLiteral("_"), QStringLiteral(":/i18n"))) {
|
||||
app.installTranslator(&appTranslator);
|
||||
}
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
RadioBackend backend;
|
||||
|
||||
Reference in New Issue
Block a user