forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user