From 3b26dbc29df44525af49e5425533137579b986f7 Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 26 Mar 2025 00:20:43 +0300 Subject: [PATCH] replace commas to periods as separators for decimal numbers --- ofdscene.cpp | 2 -- translations/en_US.ts | 26 +++++++++++++------------- translations/ru_RU.ts | 26 +++++++++++++------------- utils/utils.cpp | 5 ++++- 4 files changed, 30 insertions(+), 29 deletions(-) diff --git a/ofdscene.cpp b/ofdscene.cpp index e630132..c9f23f4 100644 --- a/ofdscene.cpp +++ b/ofdscene.cpp @@ -31,8 +31,6 @@ OFDScene::OFDScene(QWidget *parent) , ui(new Ui::OFDScene) { ui->setupUi(this); ui->stop_server_button->hide(); - // std::string message = "GET /?result=t=20171112T153500&s=834.25&fn=8712000101054551&i=32332&fp=2169935838&n=1 HTTP/1.1\nHost: localhost:8080\nUser-Agent: curl/8.12.1\nAccept: */*"; - // emit this->httpNewMessage(message); #ifdef BUILD_OFD_BINARYEYE_SCAN QObject::connect(this, &OFDScene::httpErrorOccured, this, &OFDScene::notifyHttpServerFailure); diff --git a/translations/en_US.ts b/translations/en_US.ts index 0b13763..6eeca82 100644 --- a/translations/en_US.ts +++ b/translations/en_US.ts @@ -377,67 +377,67 @@ Parse - + Could not start http server. 10 times in a row random port was occupied. Either you should run for a lottery ticket, or the problem is in the program. If the lottery ticket wasn't lucky, please, contact the developer. - + Could not start http server. - + Please, select a picture where QR code that contains info about check is present Please, select a picture where QR code that contains info about check is present - + Picture was not selected Picture was not selected - + Selected image: Selected image: - + Captcha was not solved correctly! Captcha was not solved correctly! - + Captcha is incorrect Captcha is incorrect - + Internal server error. Please, try again later. Internal server error. Please, try again later. - + Internal server error Internal server error - + Check not found. Please, ensure correctness of entered data. Check not found. Please, ensure correctness of entered data. - + Check was not found Check was not found - + QR code for binaryeye to connect - + I've scanned diff --git a/translations/ru_RU.ts b/translations/ru_RU.ts index 41f1122..b246546 100644 --- a/translations/ru_RU.ts +++ b/translations/ru_RU.ts @@ -377,67 +377,67 @@ Парсить - + Could not start http server. 10 times in a row random port was occupied. Either you should run for a lottery ticket, or the problem is in the program. If the lottery ticket wasn't lucky, please, contact the developer. - + Could not start http server. - + Please, select a picture where QR code that contains info about check is present Пожалуйста, выберете изображение, содержащее QR код с информацией о чеке - + Picture was not selected Изображение не было выбрано - + Selected image: Выбранное изображение: - + Captcha was not solved correctly! Капча была решена неверно! - + Captcha is incorrect Капча введена неверно - + Internal server error. Please, try again later. Внутренняя ошибка сервера. Пожалуйста, попробуйте снова позже. - + Internal server error Внутренняя ошибка сервера - + Check not found. Please, ensure correctness of entered data. Чек не найден. Пожалуйста, убедитесь в правильности введённых данных. - + Check was not found Чек не найден - + QR code for binaryeye to connect - + I've scanned diff --git a/utils/utils.cpp b/utils/utils.cpp index c03f20a..ab01d21 100644 --- a/utils/utils.cpp +++ b/utils/utils.cpp @@ -17,7 +17,6 @@ # include # include #endif -#include #include #include #include @@ -196,6 +195,10 @@ std::vector find_net_weights_in_names(std::vector &n result.push_back(from_utf8("?")); } } + + for (auto &entry : result) { + std::replace(entry.begin(), entry.end(), ',', '.'); + } return result; }