调整版本描述信息的显示,翻译

This commit is contained in:
yangjiaxuan 2022-07-22 11:51:22 +08:00
parent 714aec8209
commit e545199cf9
8 changed files with 244 additions and 170 deletions

View File

@ -1544,42 +1544,60 @@ Please make sure the two passwords are the same.</source>
<translation></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="15"/>
<location filename="dialog_upgrade.cpp" line="17"/>
<source>upgrade online</source>
<translation></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="35"/>
<source>upgrade contents: </source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="35"/>
<source> bug description: </source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="52"/>
<location filename="dialog_upgrade.cpp" line="34"/>
<source>bug description:
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="38"/>
<location filename="dialog_upgrade.cpp" line="42"/>
<source>upgrade contents:
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="42"/>
<source>
bug description:
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="60"/>
<source>The current version is the latest! The current version number is : </source>
<translation></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="59"/>
<location filename="dialog_upgrade.cpp" line="66"/>
<source>Discover the new version : </source>
<translation></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="61"/>
<location filename="dialog_upgrade.cpp" line="68"/>
<source> ,the current version is : </source>
<translation> </translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="98"/>
<location filename="dialog_upgrade.cpp" line="104"/>
<source>tip</source>
<translation></translation>
</message>
<message>
<location filename="dialog_upgrade.cpp" line="98"/>
<location filename="dialog_upgrade.cpp" line="104"/>
<source>Already in current version</source>
<translation></translation>
</message>
@ -2003,46 +2021,46 @@ Please make sure the two passwords are the same.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="228"/>
<location filename="mainwindow.cpp" line="231"/>
<source>Grid</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="236"/>
<source>Move To...</source>
<translation>...</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="237"/>
<location filename="mainwindow.cpp" line="240"/>
<source>Insert files</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="263"/>
<location filename="mainwindow.cpp" line="264"/>
<location filename="mainwindow.cpp" line="265"/>
<location filename="mainwindow.cpp" line="266"/>
<location filename="mainwindow.cpp" line="267"/>
<location filename="mainwindow.cpp" line="268"/>
<source>nodevice</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="479"/>
<location filename="mainwindow.cpp" line="534"/>
<location filename="mainwindow.cpp" line="1373"/>
<location filename="mainwindow.cpp" line="1397"/>
<location filename="mainwindow.cpp" line="2124"/>
<location filename="mainwindow.cpp" line="2444"/>
<location filename="mainwindow.cpp" line="482"/>
<location filename="mainwindow.cpp" line="537"/>
<location filename="mainwindow.cpp" line="1464"/>
<location filename="mainwindow.cpp" line="1488"/>
<location filename="mainwindow.cpp" line="2215"/>
<location filename="mainwindow.cpp" line="2535"/>
<source>Question</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="480"/>
<location filename="mainwindow.cpp" line="1374"/>
<location filename="mainwindow.cpp" line="483"/>
<location filename="mainwindow.cpp" line="1465"/>
<source>modified, save it?</source>
<translation>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="535"/>
<location filename="mainwindow.cpp" line="538"/>
<source>file lost, remove it?</source>
<translation></translation>
</message>
@ -2051,7 +2069,7 @@ Please make sure the two passwords are the same.</source>
<translation type="vanished"> </translation>
</message>
<message>
<location filename="mainwindow.cpp" line="765"/>
<location filename="mainwindow.cpp" line="768"/>
<source> disconnected</source>
<translation> </translation>
</message>
@ -2068,189 +2086,189 @@ Please make sure the two passwords are the same.</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1394"/>
<location filename="mainwindow.cpp" line="1485"/>
<source>Clear, then start scan</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1395"/>
<location filename="mainwindow.cpp" line="1486"/>
<source>Do NOT clear, then start scan</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1398"/>
<location filename="mainwindow.cpp" line="1489"/>
<source>Already exist images in image list.
Do you want to clear?</source>
<translation>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1432"/>
<location filename="mainwindow.cpp" line="1523"/>
<source>Information</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1433"/>
<location filename="mainwindow.cpp" line="1524"/>
<source>Insufficient disk space</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1619"/>
<location filename="mainwindow.cpp" line="1710"/>
<source>Open images</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1630"/>
<location filename="mainwindow.cpp" line="1721"/>
<source>Insert images</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1804"/>
<location filename="mainwindow.cpp" line="1809"/>
<location filename="mainwindow.cpp" line="1864"/>
<location filename="mainwindow.cpp" line="1940"/>
<location filename="mainwindow.cpp" line="1945"/>
<location filename="mainwindow.cpp" line="1895"/>
<location filename="mainwindow.cpp" line="1900"/>
<location filename="mainwindow.cpp" line="1955"/>
<location filename="mainwindow.cpp" line="2031"/>
<location filename="mainwindow.cpp" line="2036"/>
<source>info</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1804"/>
<location filename="mainwindow.cpp" line="1864"/>
<location filename="mainwindow.cpp" line="1940"/>
<location filename="mainwindow.cpp" line="1895"/>
<location filename="mainwindow.cpp" line="1955"/>
<location filename="mainwindow.cpp" line="2031"/>
<source>save failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1809"/>
<location filename="mainwindow.cpp" line="1945"/>
<location filename="mainwindow.cpp" line="1900"/>
<location filename="mainwindow.cpp" line="2036"/>
<source>find savePath in thumbnail</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2029"/>
<location filename="mainwindow.cpp" line="2120"/>
<source>File name</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2029"/>
<location filename="mainwindow.cpp" line="2120"/>
<source>File path</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2029"/>
<location filename="mainwindow.cpp" line="2120"/>
<source>File size</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2029"/>
<location filename="mainwindow.cpp" line="2120"/>
<source>Creation date/time</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2029"/>
<location filename="mainwindow.cpp" line="2120"/>
<source>Modified date/time</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2029"/>
<location filename="mainwindow.cpp" line="2120"/>
<source>Accessed date/time</source>
<translation>访</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>Format</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>Width</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>Height</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>depth</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>Color model</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>DPI</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>Print size</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2072"/>
<location filename="mainwindow.cpp" line="2163"/>
<source>Frame</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2080"/>
<location filename="mainwindow.cpp" line="2171"/>
<source>None</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2080"/>
<location filename="mainwindow.cpp" line="2171"/>
<source>Mono</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2080"/>
<location filename="mainwindow.cpp" line="2171"/>
<source>Gray</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2080"/>
<location filename="mainwindow.cpp" line="2171"/>
<source>Color</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2101"/>
<location filename="mainwindow.cpp" line="2192"/>
<source>Warning</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2101"/>
<location filename="mainwindow.cpp" line="2192"/>
<source>Device is Running!
Please finish scanning first.</source>
<translation>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3112"/>
<location filename="mainwindow.cpp" line="3203"/>
<source>Are you sure to close </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3112"/>
<location filename="mainwindow.cpp" line="3203"/>
<source> ?</source>
<translation>?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3121"/>
<location filename="mainwindow.cpp" line="3122"/>
<location filename="mainwindow.cpp" line="3212"/>
<location filename="mainwindow.cpp" line="3213"/>
<source>close </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3159"/>
<location filename="mainwindow.cpp" line="3303"/>
<source>error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3159"/>
<location filename="mainwindow.cpp" line="3303"/>
<source>get versionlist failed</source>
<translation></translation>
</message>
@ -2261,115 +2279,115 @@ Continue to close?</source>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2445"/>
<location filename="mainwindow.cpp" line="2536"/>
<source>Sure to sign out administrator account?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2566"/>
<location filename="mainwindow.cpp" line="2657"/>
<source>confirm the operation</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2567"/>
<location filename="mainwindow.cpp" line="2658"/>
<source>Are you sure to clear the rollor acount?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2583"/>
<location filename="mainwindow.cpp" line="2674"/>
<source>Please re-enter the Abount screen to obtain the latest value</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2628"/>
<location filename="mainwindow.cpp" line="2719"/>
<source>&lt;p&gt;%1: &lt;a href=&apos;%2&apos;&gt;%3&lt;/a&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2630"/>
<location filename="mainwindow.cpp" line="2721"/>
<source>&lt;p&gt;%1: %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2632"/>
<location filename="mainwindow.cpp" line="2723"/>
<source>roller number</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2982"/>
<location filename="mainwindow.cpp" line="3073"/>
<source>open scanner </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2983"/>
<location filename="mainwindow.cpp" line="3046"/>
<location filename="mainwindow.cpp" line="3074"/>
<location filename="mainwindow.cpp" line="3137"/>
<source>app name</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2988"/>
<location filename="mainwindow.cpp" line="3085"/>
<location filename="mainwindow.cpp" line="3079"/>
<location filename="mainwindow.cpp" line="3176"/>
<source>success</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2997"/>
<location filename="mainwindow.cpp" line="3088"/>
<source>apply setting </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2997"/>
<location filename="mainwindow.cpp" line="3088"/>
<source> success</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2997"/>
<location filename="mainwindow.cpp" line="3088"/>
<source> failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3015"/>
<location filename="mainwindow.cpp" line="3100"/>
<location filename="mainwindow.cpp" line="3106"/>
<location filename="mainwindow.cpp" line="3191"/>
<source>failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3038"/>
<location filename="mainwindow.cpp" line="3129"/>
<source>warning</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3038"/>
<location filename="mainwindow.cpp" line="3129"/>
<source>the disk space in the current path is unsufficient, please select a new path or clear the disk space in time.</source>
<translation>,
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3054"/>
<location filename="mainwindow.cpp" line="3145"/>
<source>lost config</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3081"/>
<location filename="mainwindow.cpp" line="3172"/>
<source>apply setting</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1052"/>
<location filename="mainwindow.cpp" line="1053"/>
<location filename="mainwindow.cpp" line="1054"/>
<location filename="mainwindow.cpp" line="2718"/>
<location filename="mainwindow.cpp" line="2719"/>
<location filename="mainwindow.cpp" line="2720"/>
<location filename="mainwindow.cpp" line="2766"/>
<location filename="mainwindow.cpp" line="2767"/>
<location filename="mainwindow.cpp" line="2768"/>
<location filename="mainwindow.cpp" line="2829"/>
<location filename="mainwindow.cpp" line="2830"/>
<location filename="mainwindow.cpp" line="2831"/>
<location filename="mainwindow.cpp" line="2892"/>
<location filename="mainwindow.cpp" line="2893"/>
<location filename="mainwindow.cpp" line="2894"/>
<location filename="mainwindow.cpp" line="1055"/>
<location filename="mainwindow.cpp" line="1056"/>
<location filename="mainwindow.cpp" line="1057"/>
<location filename="mainwindow.cpp" line="2809"/>
<location filename="mainwindow.cpp" line="2810"/>
<location filename="mainwindow.cpp" line="2811"/>
<location filename="mainwindow.cpp" line="2857"/>
<location filename="mainwindow.cpp" line="2858"/>
<location filename="mainwindow.cpp" line="2859"/>
<location filename="mainwindow.cpp" line="2920"/>
<location filename="mainwindow.cpp" line="2921"/>
<location filename="mainwindow.cpp" line="2922"/>
<location filename="mainwindow.cpp" line="2983"/>
<location filename="mainwindow.cpp" line="2984"/>
<location filename="mainwindow.cpp" line="2985"/>
<source>start failed</source>
<translation></translation>
</message>
@ -2384,135 +2402,135 @@ Continue to close?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="284"/>
<location filename="mainwindow.cpp" line="287"/>
<source>auto save</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="285"/>
<location filename="mainwindow.cpp" line="288"/>
<source>when switching pictures, save the edited pictures directly without reminding</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="437"/>
<location filename="mainwindow.cpp" line="440"/>
<source>enabling automatic saving</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="441"/>
<location filename="mainwindow.cpp" line="444"/>
<source>cancel auto save</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="474"/>
<location filename="mainwindow.cpp" line="477"/>
<source>Automatically save the edited the edited iamge when switching pictures. To cancel, uncheck the menu item: image-&gt; automatically save</source>
<translation>-&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="482"/>
<location filename="mainwindow.cpp" line="537"/>
<location filename="mainwindow.cpp" line="1376"/>
<location filename="mainwindow.cpp" line="1434"/>
<location filename="mainwindow.cpp" line="2127"/>
<location filename="mainwindow.cpp" line="2141"/>
<location filename="mainwindow.cpp" line="2446"/>
<location filename="mainwindow.cpp" line="2500"/>
<location filename="mainwindow.cpp" line="2569"/>
<location filename="mainwindow.cpp" line="3114"/>
<location filename="mainwindow.cpp" line="485"/>
<location filename="mainwindow.cpp" line="540"/>
<location filename="mainwindow.cpp" line="1467"/>
<location filename="mainwindow.cpp" line="1525"/>
<location filename="mainwindow.cpp" line="2218"/>
<location filename="mainwindow.cpp" line="2232"/>
<location filename="mainwindow.cpp" line="2537"/>
<location filename="mainwindow.cpp" line="2591"/>
<location filename="mainwindow.cpp" line="2660"/>
<location filename="mainwindow.cpp" line="3205"/>
<source>yes</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="483"/>
<location filename="mainwindow.cpp" line="486"/>
<source>save, do not remind again</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="484"/>
<location filename="mainwindow.cpp" line="538"/>
<location filename="mainwindow.cpp" line="1377"/>
<location filename="mainwindow.cpp" line="2128"/>
<location filename="mainwindow.cpp" line="2142"/>
<location filename="mainwindow.cpp" line="2447"/>
<location filename="mainwindow.cpp" line="2501"/>
<location filename="mainwindow.cpp" line="2570"/>
<location filename="mainwindow.cpp" line="3115"/>
<location filename="mainwindow.cpp" line="487"/>
<location filename="mainwindow.cpp" line="541"/>
<location filename="mainwindow.cpp" line="1468"/>
<location filename="mainwindow.cpp" line="2219"/>
<location filename="mainwindow.cpp" line="2233"/>
<location filename="mainwindow.cpp" line="2538"/>
<location filename="mainwindow.cpp" line="2592"/>
<location filename="mainwindow.cpp" line="2661"/>
<location filename="mainwindow.cpp" line="3206"/>
<source>no</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="717"/>
<location filename="mainwindow.cpp" line="720"/>
<source>found device </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="727"/>
<location filename="mainwindow.cpp" line="730"/>
<source> reconnected</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="729"/>
<location filename="mainwindow.cpp" line="732"/>
<source>already connected, but open faild</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="845"/>
<location filename="mainwindow.cpp" line="944"/>
<location filename="mainwindow.cpp" line="848"/>
<location filename="mainwindow.cpp" line="947"/>
<source>%1%2%3.%4</source>
<translation>%1%2%3.%4</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2125"/>
<location filename="mainwindow.cpp" line="2216"/>
<source>There are pictures that have not been saved.
Are you sure to close?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2138"/>
<location filename="mainwindow.cpp" line="2229"/>
<source>tips</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2139"/>
<location filename="mainwindow.cpp" line="2230"/>
<source>Are you sure to close?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2497"/>
<location filename="mainwindow.cpp" line="2588"/>
<source>confirm operation</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2498"/>
<location filename="mainwindow.cpp" line="2589"/>
<source>are you sure to clear the roller count?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2510"/>
<location filename="mainwindow.cpp" line="2512"/>
<location filename="mainwindow.cpp" line="2588"/>
<location filename="mainwindow.cpp" line="2601"/>
<location filename="mainwindow.cpp" line="2603"/>
<location filename="mainwindow.cpp" line="2679"/>
<source>hint</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2510"/>
<location filename="mainwindow.cpp" line="2580"/>
<location filename="mainwindow.cpp" line="2601"/>
<location filename="mainwindow.cpp" line="2671"/>
<source>Roller scanned count has been set to 0.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2512"/>
<location filename="mainwindow.cpp" line="2586"/>
<location filename="mainwindow.cpp" line="2603"/>
<location filename="mainwindow.cpp" line="2677"/>
<source>Roller scanned count reset failed.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2555"/>
<location filename="mainwindow.cpp" line="2646"/>
<source>Error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2555"/>
<location filename="mainwindow.cpp" line="2646"/>
<source>Document missing! It would be deleted or renamed.</source>
<translation></translation>
</message>
@ -2545,28 +2563,28 @@ Are you sure to close?</source>
<translation type="vanished">&lt;br&gt;: &lt;a href=&apos;https://j.map.baidu.com/7e/1TO&apos;&gt;百度地图访问&lt;/a&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2606"/>
<location filename="mainwindow.cpp" line="2697"/>
<source>About %1</source>
<translation> %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2607"/>
<location filename="mainwindow.cpp" line="2698"/>
<source>&lt;p&gt;%1&lt;/p&gt;&lt;p&gt;Version: %2&lt;br&gt;CopyRight: &amp;#169; %3&lt;/p&gt;&lt;p&gt;%4%5%6%7%8%9&lt;/p&gt;</source>
<translation>&lt;p&gt;%1&lt;/p&gt;&lt;p&gt;: %2&lt;br&gt;: &amp;#169; %3&lt;/p&gt;&lt;p&gt;%4%5%6%7%8%9&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2622"/>
<location filename="mainwindow.cpp" line="2713"/>
<source>about %1</source>
<translation> %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2623"/>
<location filename="mainwindow.cpp" line="2714"/>
<source>&lt;p&gt;Version: %1&lt;/p&gt;</source>
<oldsource>&lt;p&gt;: %1&lt;/p&gt;</oldsource>
<translation>&lt;p&gt; %1&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2624"/>
<location filename="mainwindow.cpp" line="2715"/>
<source>&lt;p&gt;CopyRight: &amp;#169; %1&lt;/p&gt;</source>
<oldsource>&lt;p&gt;: &amp;#169; %1&lt;/p&gt;</oldsource>
<translation>&lt;p&gt; &amp;#169; %1&lt;/p&gt;</translation>

View File

@ -28,7 +28,20 @@ Dialog_upgrade::Dialog_upgrade(class VersionDll *versionDll, HGVersionInfo *vers
{
QListWidgetItem *listwidgetItem = new QListWidgetItem;
listwidgetItem->setText(QString(m_versionInfo[i].version));
listwidgetItem->setToolTip(tr("upgrade contents: ") + m_versionInfo[i].desc + tr(" bug description: ") + m_versionInfo[i].bugInfo);
if(m_versionInfo[i].desc[0] == '\0' && m_versionInfo[i].bugInfo[0] != '\0')
{
listwidgetItem->setToolTip(tr("bug description: \n") + m_versionInfo[i].bugInfo);
}
if(m_versionInfo[i].bugInfo[0] == '\0' && m_versionInfo[i].desc[0] != '\0')
{
listwidgetItem->setToolTip(tr("upgrade contents: \n") + m_versionInfo[i].desc);
}
if(m_versionInfo[i].desc[0] != '\0' && m_versionInfo[i].bugInfo[0] != '\0')
{
listwidgetItem->setToolTip(tr("upgrade contents: \n") + m_versionInfo[i].desc + tr("\nbug description: \n") + m_versionInfo[i].bugInfo);
}
ui->listWidget->addItem(listwidgetItem);
}

View File

@ -1236,14 +1236,6 @@ Please make sure the two passwords are the same.</source>
<source>upgrade online</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>upgrade contents: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source> bug description: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The current version is the latest! The current version number is : </source>
<translation type="unfinished"></translation>
@ -1264,6 +1256,22 @@ Please make sure the two passwords are the same.</source>
<source>Already in current version</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>bug description:
</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>upgrade contents:
</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>
bug description:
</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>GraphicsScene</name>

Binary file not shown.

View File

@ -19,14 +19,42 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="16"/>
<location filename="mainwindow.cpp" line="23"/>
<source>Installation</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="19"/>
<location filename="mainwindow.cpp" line="26"/>
<source>Installation in progress, please wait...</source>
<translation>...</translation>
</message>
</context>
<context>
<name>QObject</name>
<message>
<location filename="main.cpp" line="71"/>
<source>tip</source>
<translation></translation>
</message>
<message>
<location filename="main.cpp" line="72"/>
<source>install succeed!</source>
<translation></translation>
</message>
<message>
<location filename="main.cpp" line="74"/>
<source>yes</source>
<translation></translation>
</message>
<message>
<location filename="main.cpp" line="82"/>
<source>error</source>
<translation></translation>
</message>
<message>
<location filename="main.cpp" line="82"/>
<source>install failed!</source>
<translation></translation>
</message>
</context>
</TS>

View File

@ -68,14 +68,22 @@ int main(int argc, char *argv[])
if (w.isInstallSuccess())
{
QMessageBox::information(nullptr, QObject::tr("tip"), QObject::tr("install succeed!"));
QMessageBox msg(QMessageBox::Information, QObject::tr("tip"),
QObject::tr("install succeed!"),
QMessageBox::Ok);
msg.setButtonText(QMessageBox::Ok, QObject::tr("yes"));
msg.exec();
if (!AppIsRun(appName))
RunApp(appName);
}
else
{
QMessageBox::critical(nullptr, QObject::tr("error"), QObject::tr("install failed!"));
QMessageBox msg(QMessageBox::Critical, QObject::tr("error"),
QObject::tr("install failed!"),
QMessageBox::Ok);
msg.setButtonText(QMessageBox::Ok, QObject::tr("yes"));
msg.exec();
}
}

View File

@ -86,7 +86,7 @@ void MainWindow::ThreadFunc(HGThread thread, HGPointer param)
{
(void)thread;
MainWindow* p = (MainWindow*)param;
p->m_success = p->Upgrade(p->m_pkgPath);
p->m_success = Upgrade(p->m_pkgPath);
emit p->closeWnd();
}

View File

@ -20,10 +20,9 @@ public:
signals:
void closeWnd();
void upgradeResult();
private:
bool Upgrade(const std::string& pkgPath);
static bool Upgrade(const std::string& pkgPath);
static void ThreadFunc(HGThread thread, HGPointer param);
private: