From e545199cf960a6b55bee0c6519eb5351ac13ae7d Mon Sep 17 00:00:00 2001
From: yangjiaxuan <171295266@qq.com>
Date: Fri, 22 Jul 2022 11:51:22 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=89=88=E6=9C=AC=E6=8F=8F?=
=?UTF-8?q?=E8=BF=B0=E4=BF=A1=E6=81=AF=E7=9A=84=E6=98=BE=E7=A4=BA=EF=BC=8C?=
=?UTF-8?q?=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/scanner/Scanner_zh_CN.ts | 326 +++++++++++++++++----------------
app/scanner/dialog_upgrade.cpp | 15 +-
app/scanner/qt_zh_CN.ts | 24 ++-
app/upgrade/Upgrade_zh_CN.qm | Bin 180 -> 434 bytes
app/upgrade/Upgrade_zh_CN.ts | 32 +++-
app/upgrade/main.cpp | 12 +-
app/upgrade/mainwindow.cpp | 2 +-
app/upgrade/mainwindow.h | 3 +-
8 files changed, 244 insertions(+), 170 deletions(-)
diff --git a/app/scanner/Scanner_zh_CN.ts b/app/scanner/Scanner_zh_CN.ts
index dea37f62..74fa3e88 100644
--- a/app/scanner/Scanner_zh_CN.ts
+++ b/app/scanner/Scanner_zh_CN.ts
@@ -1544,42 +1544,60 @@ Please make sure the two passwords are the same.
取消
-
+
检查更新
-
- 升级内容:
+ 升级内容:
-
- 错误描述:
+ 错误描述:
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
当前为最新版本!版本号为:
-
+
发现新版本:
-
+
,当前版本为:
-
+
提示
-
+
当前版本已安装!
@@ -2003,46 +2021,46 @@ Please make sure the two passwords are the same.
华高扫描软件
-
+
多列显示
-
+
移动到...
-
+
插入文件
-
-
-
+
+
+
没有发现扫描仪
-
-
-
-
-
-
+
+
+
+
+
+
警告
-
-
+
+
图像已被修改。
是否保存修改?
-
+
文件已丢失,是否删除?
@@ -2051,7 +2069,7 @@ Please make sure the two passwords are the same.
已连接
-
+
已断开连接
@@ -2068,189 +2086,189 @@ Please make sure the two passwords are the same.
扫描完成
-
+
清空并启动扫描
-
+
不清空并启动扫描
-
+
图像列表中已存在图像。
是否清空?
-
+
消息
-
+
磁盘空间不足,请删除不需要的文件,以保证有足够的空间
-
+
打开图片
-
+
插入图片
-
-
-
-
-
+
+
+
+
+
信息
-
-
-
+
+
+
保存失败
-
-
+
+
图片名在列表中已存在
-
+
文件名
-
+
文件路径
-
+
文件大小
-
+
创建时间
-
+
修改时间
-
+
访问时间
-
+
格式
-
+
宽度
-
+
高度
-
+
深度
-
+
色彩模式
-
+
每英寸像素点
-
+
打印尺寸
-
+
帧
-
+
无
-
+
黑白
-
+
灰度
-
+
彩色
-
+
警告
-
+
设备正在运行!
请先结束扫描。
-
+
您确定要关闭
-
+
吗?
-
-
+
+
关闭
-
+
错误
-
+
获取版本列表错误
@@ -2261,115 +2279,115 @@ Continue to close?
是否继续关闭?
-
+
是否确定登出管理员账户?
-
+
确认操作
-
+
你确定要清除滚轴计数吗
-
+
请重新进入关于界面以获取最新值
-
+
-
+
-
+
滚轴张数
-
+
打开扫描仪
-
-
+
+
华高扫描软件
-
-
+
+
成功
-
+
应用配置
-
+
成功
-
+
失败
-
-
+
+
失败
-
+
警告
-
+
当前路径磁盘空间不足,
请重新选择路径或及时清理磁盘空间。
-
+
配置丢失
-
+
应用配置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
启动失败
@@ -2384,135 +2402,135 @@ Continue to close?
立思辰扫描软件
-
+
自动保存
-
+
切换图片时,不提醒,直接保存编辑过的图片
-
+
启用自动保存
-
+
取消自动保存
-
+
切换图片时,自动保存编辑过的图像。若想取消,请取消勾选菜单项:图像->自动保存
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
确定
-
+
保存,不再提醒
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
取消
-
+
发现设备
-
+
重新连接
-
+
已经连接,但打开失败
-
-
+
+
%1%2%3.%4
-
+
有图像未保存,确定关闭?
-
+
提示
-
+
确定关闭?
-
+
确认操作
-
+
您确定要清除滚轴计数吗
-
-
-
+
+
+
提示
-
-
+
+
辊轴计数已置零
-
-
+
+
重置辊轴计数失败
-
+
错误
-
+
文档丢失!文档可能已被删除或被重命名。
@@ -2545,28 +2563,28 @@ Are you sure to close?
<br>导航地址: <a href='https://j.map.baidu.com/7e/1TO'>百度地图访问</a>
-
+
关于 %1
-
+
<p>%1</p><p>版本: %2<br>版权: © %3</p><p>%4%5%6%7%8%9</p>
-
+
关于 %1
-
+
<p>版本: %1</p>
<p>版本: %1</p>
-
+
<p>版权: © %1</p>
<p>版权: © %1</p>
diff --git a/app/scanner/dialog_upgrade.cpp b/app/scanner/dialog_upgrade.cpp
index 4ec53d3c..0a7c15e9 100644
--- a/app/scanner/dialog_upgrade.cpp
+++ b/app/scanner/dialog_upgrade.cpp
@@ -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);
}
diff --git a/app/scanner/qt_zh_CN.ts b/app/scanner/qt_zh_CN.ts
index 23122570..63f7a329 100644
--- a/app/scanner/qt_zh_CN.ts
+++ b/app/scanner/qt_zh_CN.ts
@@ -1236,14 +1236,6 @@ Please make sure the two passwords are the same.
-
-
-
-
-
-
-
-
@@ -1264,6 +1256,22 @@ Please make sure the two passwords are the same.
+
+
+
+
+
+
+
+
+
+
+
+
GraphicsScene
diff --git a/app/upgrade/Upgrade_zh_CN.qm b/app/upgrade/Upgrade_zh_CN.qm
index 32376ae9259f33a9aae3715f60909c7988abc3e3..68920b6cf7067f2f70cbfb69b1e66779e2abe69b 100644
GIT binary patch
literal 434
zcmcE7ks@*G{hX<16=n7(EZlq7iGhK^f`OqLNHIz=Fw`Fg(zXmaGn0S7LnLxz}%s>W9bZ5s=4v-KV5c7EE6_+ID?FyNB3I#>^=|!o<#X1TF
zIjM=osS4$ZnI(F9df1F+nJU@+9&QwCYEe;s5l9_-pnp
-
+
安装
-
+
安装中,请稍候...
+
+ QObject
+
+
+
+ 提示
+
+
+
+
+ 安装成功!
+
+
+
+
+ 确定
+
+
+
+
+ 错误
+
+
+
+
+ 安装失败!
+
+
diff --git a/app/upgrade/main.cpp b/app/upgrade/main.cpp
index cc64de99..8990ad3b 100644
--- a/app/upgrade/main.cpp
+++ b/app/upgrade/main.cpp
@@ -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();
}
}
diff --git a/app/upgrade/mainwindow.cpp b/app/upgrade/mainwindow.cpp
index 4ea91308..d13d7057 100644
--- a/app/upgrade/mainwindow.cpp
+++ b/app/upgrade/mainwindow.cpp
@@ -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();
}
diff --git a/app/upgrade/mainwindow.h b/app/upgrade/mainwindow.h
index 8c06f406..7468d40b 100644
--- a/app/upgrade/mainwindow.h
+++ b/app/upgrade/mainwindow.h
@@ -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: