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 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 + QR code was not detected on that image. Please edit it again or enter data manually + + + + No QR code + No QR code + MainWindow MainWindow - Главное окно + Главное окно @@ -138,6 +148,26 @@ checks parser checks parser + + + Captcha was not solved correctly! + Captcha was not solved correctly! + + + + Captcha is incorrect + Captcha is incorrect + + + + Check not found. Please, ensure correctness of entered data. + Check not found. Please, ensure correctness of entered data. + + + + Check was not found + + OutputDialog @@ -259,6 +289,16 @@ Dialog Dialog + + + Please, enter a valid captcha + Please, enter a valid captcha + + + + No 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 @@ Please, zoom to qr code and adjust contrast so that qr code looks sharp Пожалуйста, приблизьте QR код и настройте контраст, чтобы он читался + + + QR code was not detected on that image. Please edit it again or enter data manually + QR код не найден на этом изображении. Пожалуйста, попытайтесь снова или введите данные вручную + + + + No QR code + QR код не найден + MainWindow @@ -134,6 +144,26 @@ checks parser Парсер чеков + + + Captcha was not solved correctly! + Капча была решена неверно! + + + + Captcha is incorrect + Капча введена неверно + + + + Check not found. Please, ensure correctness of entered data. + Чек не найден. Пожалуйста, убедитесь в правильности введённых данных. + + + + Check was not found + Чек не найден + OutputDialog @@ -255,6 +285,16 @@ Dialog Диалог + + + Please, enter a valid captcha + Пожалуйста, введите верную капчу + + + + No captcha + Нет капчи + settingsdialog