mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Find bundled translations on iOS
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e9e7cb8e4b
commit
d668a89df7
1 changed files with 3 additions and 1 deletions
|
@ -42,8 +42,10 @@ void init_qt_late()
|
||||||
if (!uiLang.startsWith("en") || uiLang.startsWith("en-GB")) {
|
if (!uiLang.startsWith("en") || uiLang.startsWith("en-GB")) {
|
||||||
qtTranslator = new QTranslator;
|
qtTranslator = new QTranslator;
|
||||||
QString translationLocation;
|
QString translationLocation;
|
||||||
#ifdef Q_OS_ANDROID
|
#if defined(Q_OS_ANDROID)
|
||||||
translationLocation = QLatin1Literal("assets:/translations");
|
translationLocation = QLatin1Literal("assets:/translations");
|
||||||
|
#elif defined(Q_OS_IOS)
|
||||||
|
translationLocation = QLatin1Literal(":/translations/");
|
||||||
#else
|
#else
|
||||||
translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue