增加错误日志信息

This commit is contained in:
yangjiaxuan 2022-11-26 17:40:28 +08:00
parent aea48eb5df
commit 9b80f2ebff
4 changed files with 65 additions and 39 deletions

Binary file not shown.

View File

@ -2428,6 +2428,16 @@ Please finish scanning first.</source>
</message>
<message>
<location filename="mainwindow.cpp" line="3935"/>
<source>Image format processing error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3939"/>
<source>Out of memory</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3943"/>
<source>Failed</source>
<translation></translation>
</message>
@ -2475,40 +2485,40 @@ Please finish scanning first.</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4011"/>
<location filename="mainwindow.cpp" line="4019"/>
<source>Are you sure to close </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4011"/>
<location filename="mainwindow.cpp" line="4019"/>
<source> ?</source>
<translation>?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4021"/>
<location filename="mainwindow.cpp" line="4022"/>
<location filename="mainwindow.cpp" line="4029"/>
<location filename="mainwindow.cpp" line="4030"/>
<source>close </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4117"/>
<location filename="mainwindow.cpp" line="4125"/>
<source>tip</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4117"/>
<location filename="mainwindow.cpp" line="4125"/>
<source>Other versions not available</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4140"/>
<location filename="mainwindow.cpp" line="4158"/>
<location filename="mainwindow.cpp" line="4148"/>
<location filename="mainwindow.cpp" line="4166"/>
<source>The device does not support this operation</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4142"/>
<location filename="mainwindow.cpp" line="4160"/>
<location filename="mainwindow.cpp" line="4150"/>
<location filename="mainwindow.cpp" line="4168"/>
<source>IO error</source>
<translation>IO错误</translation>
</message>
@ -2570,13 +2580,13 @@ Continue to close?</source>
</message>
<message>
<location filename="mainwindow.cpp" line="3535"/>
<location filename="mainwindow.cpp" line="3977"/>
<location filename="mainwindow.cpp" line="3985"/>
<source>app name</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3565"/>
<location filename="mainwindow.cpp" line="3995"/>
<location filename="mainwindow.cpp" line="4003"/>
<source>success</source>
<translation></translation>
</message>
@ -2594,7 +2604,7 @@ Continue to close?</source>
</message>
<message>
<location filename="mainwindow.cpp" line="3574"/>
<location filename="mainwindow.cpp" line="4000"/>
<location filename="mainwindow.cpp" line="4008"/>
<source>failed</source>
<translation></translation>
</message>
@ -2618,7 +2628,7 @@ Continue to close?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3992"/>
<location filename="mainwindow.cpp" line="4000"/>
<source>apply setting</source>
<translation></translation>
</message>
@ -2722,7 +2732,7 @@ Continue to close?</source>
<location filename="mainwindow.cpp" line="2960"/>
<location filename="mainwindow.cpp" line="3040"/>
<location filename="mainwindow.cpp" line="3742"/>
<location filename="mainwindow.cpp" line="4013"/>
<location filename="mainwindow.cpp" line="4021"/>
<source>yes</source>
<translation></translation>
</message>
@ -2740,7 +2750,7 @@ Continue to close?</source>
<location filename="mainwindow.cpp" line="2906"/>
<location filename="mainwindow.cpp" line="2961"/>
<location filename="mainwindow.cpp" line="3041"/>
<location filename="mainwindow.cpp" line="4014"/>
<location filename="mainwindow.cpp" line="4022"/>
<source>no</source>
<translation></translation>
</message>
@ -3160,7 +3170,7 @@ Are you sure to close?</source>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="263"/>
<location filename="hg_settingdialog.cpp" line="1550"/>
<location filename="hg_settingdialog.cpp" line="1555"/>
<source>ok</source>
<translation></translation>
</message>
@ -3221,19 +3231,19 @@ No: add new configuration</oldsource>
: 增加新的配置</translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1878"/>
<location filename="hg_settingdialog.cpp" line="1902"/>
<location filename="hg_settingdialog.cpp" line="1895"/>
<location filename="hg_settingdialog.cpp" line="1919"/>
<source>yes</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1879"/>
<location filename="hg_settingdialog.cpp" line="1903"/>
<location filename="hg_settingdialog.cpp" line="1896"/>
<location filename="hg_settingdialog.cpp" line="1920"/>
<source>no</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1795"/>
<location filename="hg_settingdialog.cpp" line="1812"/>
<source>&lt;h6&gt;&lt;b&gt;</source>
<translation>&lt;h6&gt;&lt;b&gt;</translation>
</message>
@ -3253,62 +3263,62 @@ No: add new configuration</oldsource>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1556"/>
<location filename="hg_settingdialog.cpp" line="1570"/>
<location filename="hg_settingdialog.cpp" line="1833"/>
<location filename="hg_settingdialog.cpp" line="1566"/>
<location filename="hg_settingdialog.cpp" line="1580"/>
<location filename="hg_settingdialog.cpp" line="1850"/>
<source>tips</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1556"/>
<location filename="hg_settingdialog.cpp" line="1566"/>
<source>scheme name cannot be empty</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1570"/>
<location filename="hg_settingdialog.cpp" line="1833"/>
<location filename="hg_settingdialog.cpp" line="1580"/>
<location filename="hg_settingdialog.cpp" line="1850"/>
<source>scheme name: </source>
<translation> </translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1570"/>
<location filename="hg_settingdialog.cpp" line="1833"/>
<location filename="hg_settingdialog.cpp" line="1580"/>
<location filename="hg_settingdialog.cpp" line="1850"/>
<source> already exists</source>
<translation> </translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1795"/>
<location filename="hg_settingdialog.cpp" line="1812"/>
<source>:&lt;/b&gt;&lt;/h6&gt;</source>
<translation>:&lt;/b&gt;&lt;/h6&gt;</translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1796"/>
<location filename="hg_settingdialog.cpp" line="1813"/>
<source>&lt;p&gt; </source>
<translation>&lt;p&gt; </translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1796"/>
<location filename="hg_settingdialog.cpp" line="1813"/>
<source>&lt;/p&gt;</source>
<translation>&lt;/p&gt;</translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1822"/>
<location filename="hg_settingdialog.cpp" line="1839"/>
<source>configuration scheme name change</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1876"/>
<location filename="hg_settingdialog.cpp" line="1900"/>
<location filename="hg_settingdialog.cpp" line="1893"/>
<location filename="hg_settingdialog.cpp" line="1917"/>
<source>be sure to delete the configuration</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1877"/>
<location filename="hg_settingdialog.cpp" line="1894"/>
<source>Are you sure you want to delete the configuration &quot;</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1877"/>
<location filename="hg_settingdialog.cpp" line="1894"/>
<source>&quot; ?</source>
<translation></translation>
</message>
@ -3321,7 +3331,7 @@ No: add new configuration</oldsource>
<translation type="vanished"> </translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1901"/>
<location filename="hg_settingdialog.cpp" line="1918"/>
<source>Are you sure you want to delete the configuration?</source>
<translation></translation>
</message>

View File

@ -3930,6 +3930,14 @@ QString MainWindow::getLogInfo(HGResult ret)
{
str = tr("File data error");
}
else if (HGIMGFMT_ERR_FAIL == ret)
{
str = tr("Image format processing error");
}
else if (HGBASE_ERR_OUTOFMEMORY == ret)
{
str = tr("Out of memory");
}
else
{
str = tr("Failed");

View File

@ -2109,6 +2109,14 @@ Are you sure to close?</source>
<source>File data error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Image format processing error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Out of memory</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Phonon::</name>