diff options
Diffstat (limited to 'src/debug_functions.cpp')
| -rw-r--r-- | src/debug_functions.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp index f33a2c65..b8321640 100644 --- a/src/debug_functions.cpp +++ b/src/debug_functions.cpp @@ -1,11 +1,16 @@ +#include <QCoreApplication> +#include <QMessageBox> + #include "debug_functions.h" void call_error(QString p_message) { QMessageBox *msgBox = new QMessageBox; - msgBox->setText("Error: " + p_message); - msgBox->setWindowTitle("Error"); + msgBox->setText(QCoreApplication::translate("debug_functions", "Error: %1") + .arg(p_message)); + msgBox->setWindowTitle( + QCoreApplication::translate("debug_functions", "Error")); // msgBox->setWindowModality(Qt::NonModal); msgBox->exec(); @@ -16,7 +21,8 @@ void call_notice(QString p_message) QMessageBox *msgBox = new QMessageBox; msgBox->setText(p_message); - msgBox->setWindowTitle("Notice"); + msgBox->setWindowTitle( + QCoreApplication::translate("debug_functions", "Notice")); // msgBox->setWindowModality(Qt::NonModal); msgBox->exec(); |
