translations and cleanup
This commit is contained in:
parent
7275892b04
commit
a73bf1fc53
30
TODO
30
TODO
|
@ -1,30 +0,0 @@
|
|||
Complete module "export": [done]
|
||||
make UI; [done]
|
||||
make export to .csv [done]
|
||||
|
||||
Complete module "image-to-text": [done]
|
||||
make UI; [done]
|
||||
make use of tesseract/opencv (https://learnopencv.com/deep-learning-based-text-recognition-ocr-using-tesseract-and-opencv/); [done]
|
||||
|
||||
Add features:
|
||||
autodetect store type
|
||||
auto download of stores modules [done]
|
||||
auto download of ofd modules [done]
|
||||
settings, a window for editing settings. [done]
|
||||
add ability to control contrast and rotation of a check image before passing it to OCR [done]
|
||||
add ability to scan a qr code and request data from ofd.ru [done]
|
||||
add ability to change language from preferences
|
||||
|
||||
Refactor:
|
||||
Get rid of CPR, use libcurl instead [done]
|
||||
|
||||
Build:
|
||||
Write script for AppImage deployment [done]
|
||||
Find out dependencies packet names on different distros [done for arch, ubuntu]
|
||||
Ensure success of building on most popular distros [done for arch, ubuntu]
|
||||
Try to compile it on Windows
|
||||
|
||||
Issues:
|
||||
Captcha is not showing when running in appimage [solved]
|
||||
Stores modules are not being downloaded
|
||||
I need to pack tesseract data for ru, en [solved]
|
3
bugs
3
bugs
|
@ -1,3 +0,0 @@
|
|||
no icons on some systems (AppImage contains all icons and everything's okay)
|
||||
==============================
|
||||
|
|
@ -32,8 +32,7 @@ void ImageRedactor::wheelEvent(QWheelEvent *event) {
|
|||
void ImageRedactor::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
// Pan the image
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
setDragMode(QGraphicsView::ScrollHandDrag);
|
||||
}
|
||||
}
|
||||
|
@ -41,8 +40,7 @@ void ImageRedactor::mousePressEvent(QMouseEvent *event)
|
|||
void ImageRedactor::mouseReleaseEvent(QMouseEvent *event)
|
||||
{
|
||||
// Reset the drag mode
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
setDragMode(QGraphicsView::NoDrag);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,23 +135,23 @@
|
|||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="130"/>
|
||||
<source>Stop server</source>
|
||||
<translation type="unfinished">Stop server</translation>
|
||||
<translation>Stop server</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="143"/>
|
||||
<source>Choose image on your PC</source>
|
||||
<translation type="unfinished">Choose image on your PC</translation>
|
||||
<translation>Choose image on your PC</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="38"/>
|
||||
<location filename="../scenes/mainwindow.ui" line="183"/>
|
||||
<source>or</source>
|
||||
<translation type="unfinished">or</translation>
|
||||
<translation>or</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="97"/>
|
||||
<source>Use your phone as a QR code scanner</source>
|
||||
<translation type="unfinished">Use your phone as a QR code scanner</translation>
|
||||
<translation>Use your phone as a QR code scanner</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="157"/>
|
||||
|
@ -162,17 +162,17 @@
|
|||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="117"/>
|
||||
<source>Date and time of purchase</source>
|
||||
<translation type="unfinished">Date and time of purchase</translation>
|
||||
<translation>Date and time of purchase</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="84"/>
|
||||
<source>Operation type</source>
|
||||
<translation type="unfinished">Operation type</translation>
|
||||
<translation>Operation type</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="170"/>
|
||||
<source>Parse an E-Mail</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Parse an E-Mail</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="210"/>
|
||||
|
@ -201,7 +201,7 @@
|
|||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="246"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Settings</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="150"/>
|
||||
|
@ -215,27 +215,27 @@
|
|||
<message>
|
||||
<location filename="../mainwindow.cpp" line="91"/>
|
||||
<source>QR code for binaryeye to connect</source>
|
||||
<translation type="unfinished">QR code for binaryeye to connect</translation>
|
||||
<translation>QR code for binaryeye to connect</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="92"/>
|
||||
<source>I've scanned</source>
|
||||
<translation type="unfinished">I've scanned</translation>
|
||||
<translation>I've scanned</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="98"/>
|
||||
<source>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.</source>
|
||||
<translation type="unfinished">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.</translation>
|
||||
<translation>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.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="100"/>
|
||||
<source>Could not start http server.</source>
|
||||
<translation type="unfinished">Could not start http server.</translation>
|
||||
<translation>Could not start http server.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="144"/>
|
||||
<source>Selected image: </source>
|
||||
<translation type="unfinished">Selected image: </translation>
|
||||
<translation>Selected image: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="204"/>
|
||||
|
@ -265,7 +265,7 @@
|
|||
<message>
|
||||
<location filename="../mainwindow.cpp" line="220"/>
|
||||
<source>Check was not found</source>
|
||||
<translation type="unfinished">Check was not found</translation>
|
||||
<translation>Check was not found</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>An error has occured. Check was matched incorrectly. Vector sizes are different. Please, contact the developer.</source>
|
||||
|
@ -599,7 +599,7 @@
|
|||
<message>
|
||||
<location filename="../main.cpp" line="60"/>
|
||||
<source>Using locale: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Using locale: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -135,23 +135,23 @@
|
|||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="130"/>
|
||||
<source>Stop server</source>
|
||||
<translation type="unfinished">Остановить сервер</translation>
|
||||
<translation>Остановить сервер</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="143"/>
|
||||
<source>Choose image on your PC</source>
|
||||
<translation type="unfinished">Выбрать изображение на компьютере</translation>
|
||||
<translation>Выбрать изображение на компьютере</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="38"/>
|
||||
<location filename="../scenes/mainwindow.ui" line="183"/>
|
||||
<source>or</source>
|
||||
<translation type="unfinished">или</translation>
|
||||
<translation>или</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="97"/>
|
||||
<source>Use your phone as a QR code scanner</source>
|
||||
<translation type="unfinished">Использовать телефон как сканнер QR</translation>
|
||||
<translation>Использовать телефон как сканнер QR</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="157"/>
|
||||
|
@ -162,17 +162,17 @@
|
|||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="117"/>
|
||||
<source>Date and time of purchase</source>
|
||||
<translation type="unfinished">Дата и время покупки</translation>
|
||||
<translation>Дата и время покупки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="84"/>
|
||||
<source>Operation type</source>
|
||||
<translation type="unfinished">Тип операции</translation>
|
||||
<translation>Тип операции</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="170"/>
|
||||
<source>Parse an E-Mail</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Парсить E-Mail</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="210"/>
|
||||
|
@ -197,7 +197,7 @@
|
|||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="246"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Настройки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../scenes/mainwindow.ui" line="150"/>
|
||||
|
@ -211,27 +211,27 @@
|
|||
<message>
|
||||
<location filename="../mainwindow.cpp" line="91"/>
|
||||
<source>QR code for binaryeye to connect</source>
|
||||
<translation type="unfinished">QR код для подключения BinaryEye</translation>
|
||||
<translation>QR код для подключения BinaryEye</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="92"/>
|
||||
<source>I've scanned</source>
|
||||
<translation type="unfinished">Просканировал</translation>
|
||||
<translation>Просканировал</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="98"/>
|
||||
<source>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.</source>
|
||||
<translation type="unfinished">Не смог поднять HTTP сервер. 10 раз подряд случайно выбранный порт был занят. Либо Вам следует бежать за лоттерейным билетом, или в программе баг. Если лотерейный билет не был выигрышным, пожалуйста, сообщите разработчику.</translation>
|
||||
<translation>Не смог поднять HTTP сервер. 10 раз подряд случайно выбранный порт был занят. Либо Вам следует бежать за лоттерейным билетом, или в программе баг. Если лотерейный билет не был выигрышным, пожалуйста, сообщите разработчику.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="100"/>
|
||||
<source>Could not start http server.</source>
|
||||
<translation type="unfinished">Не получилось запустить HTTP сервер.</translation>
|
||||
<translation>Не получилось запустить HTTP сервер.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="144"/>
|
||||
<source>Selected image: </source>
|
||||
<translation type="unfinished">Выбранное изображение: </translation>
|
||||
<translation>Выбранное изображение: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="204"/>
|
||||
|
@ -595,7 +595,7 @@
|
|||
<message>
|
||||
<location filename="../main.cpp" line="60"/>
|
||||
<source>Using locale: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Использую локаль: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "utils.h"
|
||||
#include <utils/utils.h>
|
||||
#ifdef BUILD_OFD_BINARYEYE_SCAN
|
||||
# include <arpa/inet.h>
|
||||
# include <qrencode.h>
|
||||
|
@ -6,7 +6,8 @@
|
|||
# include <netinet/in.h>
|
||||
#endif
|
||||
#ifdef BUILD_OFD_MODE
|
||||
# include "../exceptions/ofdrequestexception.h"
|
||||
# include <exceptions/ofdrequestexception.h>
|
||||
# include <fstream>
|
||||
#endif
|
||||
#include <codecvt>
|
||||
#include <cstring>
|
||||
|
@ -19,12 +20,11 @@
|
|||
#endif
|
||||
#include <string>
|
||||
#include <QWidget>
|
||||
#include <fstream>
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
#include <net/net.h>
|
||||
#include <settings/settings.h>
|
||||
|
||||
|
||||
#ifdef BUILD_OFD_BINARYEYE_SCAN
|
||||
std::string get_local_ip_address() {
|
||||
struct ifaddrs * ifAddrStruct=NULL;
|
||||
|
|
Loading…
Reference in New Issue