Skip to content

Commit 583ee7b

Browse files
authored
Fix update of some translations after application language switch. (#3049)
1 parent 503662f commit 583ee7b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

gui/mainwindow.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Cppcheck - A tool for static C/C++ code analysis
3-
* Copyright (C) 2007-2020 Cppcheck team.
3+
* Copyright (C) 2007-2021 Cppcheck team.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -1459,6 +1459,9 @@ void MainWindow::setLanguage(const QString &code)
14591459
//Translate everything that is visible here
14601460
mUI.retranslateUi(this);
14611461
mUI.mResults->translate();
1462+
mLineEditFilter->setPlaceholderText(QCoreApplication::translate("MainWindow", "Quick Filter:"));
1463+
if (mProjectFile)
1464+
formatAndSetTitle(tr("Project:") + ' ' + mProjectFile->getFilename());
14621465
}
14631466
}
14641467

gui/resultsview.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Cppcheck - A tool for static C/C++ code analysis
3-
* Copyright (C) 2007-2020 Cppcheck team.
3+
* Copyright (C) 2007-2021 Cppcheck team.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -364,6 +364,7 @@ void ResultsView::saveSettings(QSettings *settings)
364364

365365
void ResultsView::translate()
366366
{
367+
mUI.retranslateUi(this);
367368
mUI.mTree->translate();
368369
}
369370

0 commit comments

Comments
 (0)