aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-01-10 15:31:20 +0100
committerEike Ziller <eike.ziller@qt.io>2018-01-10 15:36:23 +0000
commit1e77f48251f8881cdcdcc3734d4d7ec0b2f40e6b (patch)
tree7847700e7050fc531ca40e43f8489c975bd2fded /src/app
parent63cd9cd7801e3d18dc962b71293df9eaec81a415 (diff)
Fix that translations did not work after setting IDE_ID
We currently do not actually rename any resources. Change-Id: I4ebaa4924d6358af63dca7611e64fe53835252d6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 90eae94f2b..e9a863946a 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -414,7 +414,7 @@ int main(int argc, char **argv)
const QString &creatorTrPath = resourcePath() + "/translations";
foreach (QString locale, uiLanguages) {
locale = QLocale(locale).name();
- if (translator.load(QString::fromLatin1(Core::Constants::IDE_ID) + "_" + locale, creatorTrPath)) {
+ if (translator.load("qtcreator_" + locale, creatorTrPath)) {
const QString &qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
const QString &qtTrFile = QLatin1String("qt_") + locale;
// Binary installer puts Qt tr files into creatorTrPath