Fix update of some translations after application language switch. (#3049)
This commit is contained in:
parent
503662f625
commit
583ee7b70e
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Cppcheck - A tool for static C/C++ code analysis
|
* Cppcheck - A tool for static C/C++ code analysis
|
||||||
* Copyright (C) 2007-2020 Cppcheck team.
|
* Copyright (C) 2007-2021 Cppcheck team.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1459,6 +1459,9 @@ void MainWindow::setLanguage(const QString &code)
|
||||||
//Translate everything that is visible here
|
//Translate everything that is visible here
|
||||||
mUI.retranslateUi(this);
|
mUI.retranslateUi(this);
|
||||||
mUI.mResults->translate();
|
mUI.mResults->translate();
|
||||||
|
mLineEditFilter->setPlaceholderText(QCoreApplication::translate("MainWindow", "Quick Filter:"));
|
||||||
|
if (mProjectFile)
|
||||||
|
formatAndSetTitle(tr("Project:") + ' ' + mProjectFile->getFilename());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Cppcheck - A tool for static C/C++ code analysis
|
* Cppcheck - A tool for static C/C++ code analysis
|
||||||
* Copyright (C) 2007-2020 Cppcheck team.
|
* Copyright (C) 2007-2021 Cppcheck team.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -364,6 +364,7 @@ void ResultsView::saveSettings(QSettings *settings)
|
||||||
|
|
||||||
void ResultsView::translate()
|
void ResultsView::translate()
|
||||||
{
|
{
|
||||||
|
mUI.retranslateUi(this);
|
||||||
mUI.mTree->translate();
|
mUI.mTree->translate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue