summaryrefslogtreecommitdiffstats
path: root/core/qt-init.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-04 13:51:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-04 13:51:55 -0700
commitd668a89df7a92d5fa34f580280932a2bbd5076fc (patch)
tree8909077f5f4586bbfdb1787992adcffe7f8e0f17 /core/qt-init.cpp
parente9e7cb8e4b7e70b32848854b7d005fde4eb5adeb (diff)
downloadsubsurface-d668a89df7a92d5fa34f580280932a2bbd5076fc.tar.gz
Find bundled translations on iOS
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qt-init.cpp')
-rw-r--r--core/qt-init.cpp4
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