translations

This commit is contained in:
leca 2024-12-01 15:01:55 +03:00
parent fdfeb57049
commit b59b42a40c
5 changed files with 89 additions and 9 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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();

View File

@ -13,13 +13,23 @@
<source>Please, zoom to qr code and adjust contrast so that qr code looks sharp</source>
<translation>Please, zoom to qr code and adjust contrast so that qr code looks sharp</translation>
</message>
<message>
<location filename="../adjustpicturedialog.cpp" line="40"/>
<source>QR code was not detected on that image. Please edit it again or enter data manually</source>
<translation>QR code was not detected on that image. Please edit it again or enter data manually</translation>
</message>
<message>
<location filename="../adjustpicturedialog.cpp" line="42"/>
<source>No QR code</source>
<translation>No QR code</translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.ui" line="14"/>
<source>MainWindow</source>
<translation type="unfinished">Главное окно</translation>
<translation>Главное окно</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="37"/>
@ -138,6 +148,26 @@
<source>checks parser</source>
<translation>checks parser</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="94"/>
<source>Captcha was not solved correctly!</source>
<translation>Captcha was not solved correctly!</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="96"/>
<source>Captcha is incorrect</source>
<translation>Captcha is incorrect</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="101"/>
<source>Check not found. Please, ensure correctness of entered data.</source>
<translation>Check not found. Please, ensure correctness of entered data.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="103"/>
<source>Check was not found</source>
<translation></translation>
</message>
</context>
<context>
<name>OutputDialog</name>
@ -259,6 +289,16 @@
<source>Dialog</source>
<translation>Dialog</translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="22"/>
<source>Please, enter a valid captcha</source>
<translation>Please, enter a valid captcha</translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="24"/>
<source>No captcha</source>
<translation>No captcha</translation>
</message>
</context>
<context>
<name>settingsdialog</name>

View File

@ -13,6 +13,16 @@
<source>Please, zoom to qr code and adjust contrast so that qr code looks sharp</source>
<translation>Пожалуйста, приблизьте QR код и настройте контраст, чтобы он читался</translation>
</message>
<message>
<location filename="../adjustpicturedialog.cpp" line="40"/>
<source>QR code was not detected on that image. Please edit it again or enter data manually</source>
<translation>QR код не найден на этом изображении. Пожалуйста, попытайтесь снова или введите данные вручную</translation>
</message>
<message>
<location filename="../adjustpicturedialog.cpp" line="42"/>
<source>No QR code</source>
<translation>QR код не найден</translation>
</message>
</context>
<context>
<name>MainWindow</name>
@ -134,6 +144,26 @@
<source>checks parser</source>
<translation>Парсер чеков</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="94"/>
<source>Captcha was not solved correctly!</source>
<translation>Капча была решена неверно!</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="96"/>
<source>Captcha is incorrect</source>
<translation>Капча введена неверно</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="101"/>
<source>Check not found. Please, ensure correctness of entered data.</source>
<translation>Чек не найден. Пожалуйста, убедитесь в правильности введённых данных.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="103"/>
<source>Check was not found</source>
<translation>Чек не найден</translation>
</message>
</context>
<context>
<name>OutputDialog</name>
@ -255,6 +285,16 @@
<source>Dialog</source>
<translation>Диалог</translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="22"/>
<source>Please, enter a valid captcha</source>
<translation>Пожалуйста, введите верную капчу</translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="24"/>
<source>No captcha</source>
<translation>Нет капчи</translation>
</message>
</context>
<context>
<name>settingsdialog</name>