From d668a89df7a92d5fa34f580280932a2bbd5076fc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 4 May 2016 13:51:55 -0700 Subject: Find bundled translations on iOS Signed-off-by: Dirk Hohndel --- core/qt-init.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2