summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase/installerbase.cpp
diff options
context:
space:
mode:
authorNiels Weber <niels.2.weber@nokia.com>2012-03-06 12:27:51 +0100
committerNiels Weber <niels.2.weber@nokia.com>2012-03-07 14:15:48 +0100
commit17536d4c0f0e6f668c683698aa18d6045e8f7e2a (patch)
treeb5f916d17a0bcf5eb7ee6f80ba10a00939ef7b9d /installerbuilder/installerbase/installerbase.cpp
parentbfd0c81e03a2b7cb1a25ced58f1951062c55fd58 (diff)
we need an en_us translation to replace placeholder strings
Change-Id: Id24f477f8953a3eb3eb608fbe283d340c81b5ff6 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'installerbuilder/installerbase/installerbase.cpp')
-rw-r--r--installerbuilder/installerbase/installerbase.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/installerbuilder/installerbase/installerbase.cpp b/installerbuilder/installerbase/installerbase.cpp
index e7295b062..62b1165e6 100644
--- a/installerbuilder/installerbase/installerbase.cpp
+++ b/installerbuilder/installerbase/installerbase.cpp
@@ -222,6 +222,14 @@ int main(int argc, char *argv[])
app.installTranslator(translator);
}
+ // install English translation as fallback so that correct license button text is used
+ const QString enLocaleFile = QString::fromLatin1(":/translations/en_us.qm");
+ if (QFile::exists(enLocaleFile)) {
+ QTranslator* const translator = new QTranslator(&app);
+ translator->load(enLocaleFile);
+ app.installTranslator(translator);
+ }
+
// install "our" default translator
const QString ourLocaleFile =
QString::fromLatin1(":/translations/%1.qm").arg(QLocale().name().toLower());