summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/installer/component.cpp4
-rw-r--r--src/sdk/installerbase.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp
index 234d57622..40c5b7340 100644
--- a/src/libs/installer/component.cpp
+++ b/src/libs/installer/component.cpp
@@ -346,12 +346,12 @@ void Component::loadDataFromPackage(const Package &package)
.split(QInstaller::commaRegExp(), QString::SkipEmptyParts);
if (!uis.isEmpty())
loadUserInterfaces(QDir(QString::fromLatin1("%1/%2").arg(localTempPath(), name())), uis);
-
+#ifndef IFW_DISABLE_TRANSLATIONS
const QStringList qms = package.data(QLatin1String("Translations")).toString()
.split(QInstaller::commaRegExp(), QString::SkipEmptyParts);
if (!qms.isEmpty())
loadTranslations(QDir(QString::fromLatin1("%1/%2").arg(localTempPath(), name())), qms);
-
+#endif
QHash<QString, QVariant> licenseHash = package.data(QLatin1String("Licenses")).toHash();
if (!licenseHash.isEmpty())
loadLicenses(QString::fromLatin1("%1/%2/").arg(localTempPath(), name()), licenseHash);
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp
index 914be33f6..ee710a1ea 100644
--- a/src/sdk/installerbase.cpp
+++ b/src/sdk/installerbase.cpp
@@ -85,7 +85,7 @@ int InstallerBase::run()
}
qCDebug(QInstaller::lcInstallerInstallLog) << "Language:" << QLocale().uiLanguages()
.value(0, QLatin1String("No UI language set")).toUtf8().constData();
-
+#ifndef IFW_DISABLE_TRANSLATIONS
const QString directory = QLatin1String(":/translations");
// Check if there is a modified translation first to enable people
// to easily provide corrected translations to Qt/IFW for their installers
@@ -124,7 +124,7 @@ int InstallerBase::run()
QCoreApplication::instance()->installTranslator(translator.take());
}
}
-
+#endif
{
QDirIterator fontIt(QStringLiteral(":/fonts"));
while (fontIt.hasNext()) {