summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-23 00:33:09 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-23 08:30:57 -0800
commitf4ef9565a7dca695812870a87e5c25a3605ac5bb (patch)
treec39c41f15b934cae893fb474618aa3bcb51c116d
parentfeb4ec2f6a1c22134214a08aa3ca2c6edff90271 (diff)
downloadsubsurface-f4ef9565a7dca695812870a87e5c25a3605ac5bb.tar.gz
android: find the translationsv4.9.10
As we switched to the qmake based build we now bundle the translations via the Qt resource system instead of explicitly as Android assets. This adjusts the code that opens the translations accordingly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/qt-init.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/qt-init.cpp b/core/qt-init.cpp
index 18f9a6ef7..ef8af3337 100644
--- a/core/qt-init.cpp
+++ b/core/qt-init.cpp
@@ -79,9 +79,7 @@ void init_qt_late()
QLocale::setDefault(loc);
QString translationLocation;
-#if defined(Q_OS_ANDROID)
- translationLocation = QLatin1String("assets:/translations");
-#elif defined(Q_OS_IOS)
+#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
translationLocation = QLatin1String(":/");
#else
translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath);