aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-01 02:06:58 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-01 02:08:36 +0200
commitd75db83442a01dcd003ea39a5ec61baad7d344a0 (patch)
treecc25afb55916501614ee435375094161f253b7cb /src
parent0a48722a1ddeccfc89f1812c44b7582358671697 (diff)
downloadRWA.Support.DesktopApp-d75db83442a01dcd003ea39a5ec61baad7d344a0.tar.gz
RWA.Support.DesktopApp-d75db83442a01dcd003ea39a5ec61baad7d344a0.tar.bz2
RWA.Support.DesktopApp-d75db83442a01dcd003ea39a5ec61baad7d344a0.zip
Change translation system to work more out of the box.
using ./update-locales.sh now removes any old/obsolete translations.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9436a2b..ff5d2a8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -72,8 +72,9 @@ int main(int argc, char *argv[]) {
QQuickStyle::setStyle("Material");
QTranslator translator;
- qDebug().noquote() << QString("Locales: Loading locale: qrc:/locales/bin/%0").arg(QLocale::system().name());
- if(translator.load(":/locales/bin/" + QLocale::system().name())) {
+ qDebug().noquote() << QString("Locales: Loading locale: qrc:/locales/%0")
+ .arg(QLocale::system().name());
+ if(translator.load(":/locales/" + QLocale::system().name())) {
app.installTranslator(&translator);
qDebug().noquote() << "Locales: Loaded: " + QLocale::system().name() + " locale!";
} else {