Find bundled translations on iOS

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-05-04 13:51:55 -07:00
parent e9e7cb8e4b
commit d668a89df7

View file

@ -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