diff --git a/adjustpicturedialog.cpp b/adjustpicturedialog.cpp
index c9f8e54..098465c 100644
--- a/adjustpicturedialog.cpp
+++ b/adjustpicturedialog.cpp
@@ -37,9 +37,9 @@ void AdjustPictureDialog::accept() {
if (result == "") {
QMessageBox infoDialog;
- infoDialog.setText("QR code was not detected on that image. Please edit it again or enter data manually");
+ infoDialog.setText(tr("QR code was not detected on that image. Please edit it again or enter data manually"));
infoDialog.setIcon(QMessageBox::Warning);
- infoDialog.setWindowTitle("No QR code");
+ infoDialog.setWindowTitle(tr("No QR code"));
infoDialog.exec();
} else {
emit decodedData(result);
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 5abcf4a..6cb37f5 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -91,16 +91,16 @@ void MainWindow::on_parseButton_clicked() {
if (!strcmp(e.what(), "Incorrect captcha")) {
is_captcha_solved = false;
QMessageBox infoDialog;
- infoDialog.setText("Captcha was not solved correctly!");
+ infoDialog.setText(tr("Captcha was not solved correctly!"));
infoDialog.setIcon(QMessageBox::Critical);
- infoDialog.setWindowTitle("Captcha is incorrect");
+ infoDialog.setWindowTitle(tr("Captcha is incorrect"));
infoDialog.exec();
break;
} else if (!strcmp(e.what(), "Does not exist")) {
QMessageBox infoDialog;
- infoDialog.setText("Check not found. Please, ensure correctness of entered data.");
+ infoDialog.setText(tr("Check not found. Please, ensure correctness of entered data."));
infoDialog.setIcon(QMessageBox::Critical);
- infoDialog.setWindowTitle("Check was not found");
+ infoDialog.setWindowTitle(tr("Check was not found"));
infoDialog.exec();
return;
}
diff --git a/solvecaptchadialog.cpp b/solvecaptchadialog.cpp
index d7b82db..54eb292 100644
--- a/solvecaptchadialog.cpp
+++ b/solvecaptchadialog.cpp
@@ -19,9 +19,9 @@ void SolveCaptchaDialog::accept() {
std::string userInput = ui->captcha_edit->text().toStdString();
if (userInput.length() < 6) {
QMessageBox infoDialog;
- infoDialog.setText("Please, enter a valid captcha");
+ infoDialog.setText(tr("Please, enter a valid captcha"));
infoDialog.setIcon(QMessageBox::Warning);
- infoDialog.setWindowTitle("No captcha");
+ infoDialog.setWindowTitle(tr("No captcha"));
infoDialog.exec();
} else {
solved_captcha->erase();
diff --git a/translations/en_US.ts b/translations/en_US.ts
index 69fc1a8..6dd312a 100644
--- a/translations/en_US.ts
+++ b/translations/en_US.ts
@@ -13,13 +13,23 @@
Please, zoom to qr code and adjust contrast so that qr code looks sharp
+
+
+
+ QR code was not detected on that image. Please edit it again or enter data manually
+
+
+
+
+ No QR code
+ MainWindow
- Главное окно
+ Главное окно
@@ -138,6 +148,26 @@
checks parser
+
+
+
+ Captcha was not solved correctly!
+
+
+
+
+ Captcha is incorrect
+
+
+
+
+ Check not found. Please, ensure correctness of entered data.
+
+
+
+
+
+ OutputDialog
@@ -259,6 +289,16 @@
Dialog
+
+
+
+ Please, enter a valid captcha
+
+
+
+
+ No captcha
+ settingsdialog
diff --git a/translations/ru_RU.ts b/translations/ru_RU.ts
index e25ecd0..e10c2aa 100644
--- a/translations/ru_RU.ts
+++ b/translations/ru_RU.ts
@@ -13,6 +13,16 @@
Пожалуйста, приблизьте QR код и настройте контраст, чтобы он читался
+
+
+
+ QR код не найден на этом изображении. Пожалуйста, попытайтесь снова или введите данные вручную
+
+
+
+
+ QR код не найден
+ MainWindow
@@ -134,6 +144,26 @@
Парсер чеков
+
+
+
+ Капча была решена неверно!
+
+
+
+
+ Капча введена неверно
+
+
+
+
+ Чек не найден. Пожалуйста, убедитесь в правильности введённых данных.
+
+
+
+
+ Чек не найден
+ OutputDialog
@@ -255,6 +285,16 @@
Диалог
+
+
+
+ Пожалуйста, введите верную капчу
+
+
+
+
+ Нет капчи
+ settingsdialog