Part: Attempt to translate exceptions in dialogs

Relies on the exception text having been added to the translation database in a previous call to QT_TRANSLATE_NOOP, and put in the 'Exception' context.
This commit is contained in:
Chris Hennes
2023-04-27 17:31:44 -05:00
parent 1b2857c306
commit bdcd28cf5c
8 changed files with 21 additions and 18 deletions

View File

@@ -212,7 +212,7 @@ bool LoftWidget::accept()
doc->commitCommand();
}
catch (const Base::Exception& e) {
QMessageBox::warning(this, tr("Input error"), QString::fromLatin1(e.what()));
QMessageBox::warning(this, tr("Input error"), QCoreApplication::translate("Exception", e.what()));
return false;
}