diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-05-04 13:51:55 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-05-04 13:51:55 -0700 |
commit | d668a89df7a92d5fa34f580280932a2bbd5076fc (patch) | |
tree | 8909077f5f4586bbfdb1787992adcffe7f8e0f17 | |
parent | e9e7cb8e4b7e70b32848854b7d005fde4eb5adeb (diff) | |
download | subsurface-d668a89df7a92d5fa34f580280932a2bbd5076fc.tar.gz |
Find bundled translations on iOS
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | core/qt-init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/qt-init.cpp b/core/qt-init.cpp index 3d07899ce..6e018faec 100644 --- a/core/qt-init.cpp +++ b/core/qt-init.cpp @@ -42,8 +42,10 @@ void init_qt_late() if (!uiLang.startsWith("en") || uiLang.startsWith("en-GB")) { qtTranslator = new QTranslator; QString translationLocation; -#ifdef Q_OS_ANDROID +#if defined(Q_OS_ANDROID) translationLocation = QLatin1Literal("assets:/translations"); +#elif defined(Q_OS_IOS) + translationLocation = QLatin1Literal(":/translations/"); #else translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath); #endif |