mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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 <dirk@hohndel.org>
This commit is contained in:
parent
feb4ec2f6a
commit
f4ef9565a7
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue