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>
This commit is contained in:
Eike Ziller
2018-01-10 15:31:20 +01:00
parent 63cd9cd780
commit 1e77f48251

View File

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