GUI: Improve the error message for language loading error.
This commit is contained in:
parent
4ac3c7fe3b
commit
f498e53cd2
|
@ -678,13 +678,17 @@ void MainWindow::SetLanguage(const QString &code)
|
|||
QString error;
|
||||
if (!mTranslation->SetLanguage(code, error))
|
||||
{
|
||||
QMessageBox msg(QMessageBox::Critical,
|
||||
const QString msg(tr("Failed to change the user interface language:"
|
||||
"\n\n%1\n\n"
|
||||
"The user interface language has been reset to English. Open "
|
||||
"the Preferences-dialog to select any of the available "
|
||||
"languages.").arg(error));
|
||||
QMessageBox msgBox(QMessageBox::Warning,
|
||||
tr("Cppcheck"),
|
||||
QString(tr("Failed to change the language:\n\n%1")).arg(error),
|
||||
msg,
|
||||
QMessageBox::Ok,
|
||||
this);
|
||||
|
||||
msg.exec();
|
||||
msgBox.exec();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue