From f4ef9565a7dca695812870a87e5c25a3605ac5bb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 23 Nov 2020 00:33:09 +0000 Subject: android: find the translations 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 --- core/qt-init.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core') 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); -- cgit v1.2.3-70-g09d2