diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2018-05-29 19:21:49 -0500 |
|---|---|---|
| committer | stonedDiscord <stoned@derpymail.org> | 2019-07-28 19:00:34 +0200 |
| commit | 762702aff852701c44eb0f07ee02c0fdfd1fd85b (patch) | |
| tree | c88c3e6d0c7ea48cdc039339adbd63d95e83662f /src/debug_functions.cpp | |
| parent | 319cb0adee1b8a65d1daf78aa903d6ffd2952c9c (diff) | |
Make all strings translatable
Diffstat (limited to 'src/debug_functions.cpp')
| -rw-r--r-- | src/debug_functions.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp index 77f2f35a..a790610d 100644 --- a/src/debug_functions.cpp +++ b/src/debug_functions.cpp @@ -1,11 +1,14 @@ +#include <QMessageBox> +#include <QCoreApplication> + #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); @@ -17,7 +20,7 @@ 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); |
