diff --git a/app/scanner/Scanner_zh_CN.qm b/app/scanner/Scanner_zh_CN.qm
index a582f200..a7cfbfab 100644
Binary files a/app/scanner/Scanner_zh_CN.qm and b/app/scanner/Scanner_zh_CN.qm differ
diff --git a/app/scanner/Scanner_zh_CN.ts b/app/scanner/Scanner_zh_CN.ts
index 7b7a1bb3..a153c2a6 100644
--- a/app/scanner/Scanner_zh_CN.ts
+++ b/app/scanner/Scanner_zh_CN.ts
@@ -159,7 +159,7 @@
现有配置方案:
-
+
删除所有配置方案
@@ -168,12 +168,12 @@
配置信息:
-
+
重命名配置方案
-
+
删除配置方案
@@ -182,167 +182,167 @@
应用
-
+
新建配置方案
-
+
目录
-
+
-
+
使用当前日期建立子文件夹
-
+
按照空白页建立子文件夹
-
+
按照图片颜色类型建立子文件夹
-
+
文件名
-
+
文件索引
-
+
开始索引
-
+
数字
-
+
-
+
-
+
-
+
-
+
-
+
例如 “HGScan001”
-
+
偶数和奇数页
-
+
奇数页
-
+
偶数页
-
+
格式
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
压缩选项
-
+
多页保存(TIFF/PDF/OFD/GIF)
-
+
用户自定义页数
@@ -351,7 +351,7 @@
多页保存(TIFF/PDF/OFD)
-
+
所有页
@@ -360,33 +360,46 @@
默认配置
-
+
+
- 默认设置方案
+ 默认配置方案
-
-
-
-
+
+
+
+
例如.“%1%2”
-
+
确定
-
+
取消
-
+
文件夹路径
+
+
+
+
+ 提示
+
+
+
+
+
+ 配置方案已存在
+
Dialog_ClrCache
@@ -1230,17 +1243,17 @@ Page range will be 'Chosen Pages'.
取消
-
+
配置改名
-
+
提示
-
+
内容不能为空
@@ -2387,22 +2400,22 @@ bug description:
没有发现扫描仪
-
-
-
-
-
+
+
+
+
+
询问
-
+
图像已被修改。
是否保存修改?
-
+
文件已丢失,是否删除?
@@ -2411,7 +2424,7 @@ bug description:
已连接
-
+
已断开连接
@@ -2428,17 +2441,17 @@ bug description:
扫描完成
-
+
清空并启动扫描
-
+
不清空并启动扫描
-
+
图像列表中已存在图像。
@@ -2453,12 +2466,12 @@ Do you want to clear?
磁盘空间不足,请删除不需要的文件,以保证有足够的空间
-
+
打开图片
-
+
插入图片
@@ -2471,33 +2484,33 @@ Do you want to clear?
保存失败
-
+
黑白
-
+
256级灰度
-
+
24位彩色
-
-
+
-
+
-
+
-
+
+
请手动唤醒设备
@@ -2507,238 +2520,239 @@ Do you want to clear?
紫光扫描软件
-
+
+
- 默认设置方案
+ 默认配置方案
-
+
显示缩略图栏
-
+
隐藏缩略图栏
-
+
取消
-
-
-
+
+
+
保存成功
-
-
+
+
图片名在列表中已存在
-
+
请至少选中一张图片再进行导出
-
+
文件名
-
+
文件路径
-
+
文件大小
-
+
创建时间
-
+
修改时间
-
+
访问时间
-
+
格式
-
+
宽度
-
+
高度
-
+
深度
-
+
色彩模式
-
+
每英寸像素点
-
+
打印尺寸
-
+
帧
-
+
无
-
+
黑白
-
+
灰度
-
+
彩色
-
+
不支持
-
+
警告
-
+
设备正在运行!
请先结束扫描。
-
+
无法访问当前缓存路径:%1
请尝试在【用户】菜单登录管理员账户,前往【缓存设置】更改缓存路径。
-
+
无法访问当前缓存路径:%1
请尝试在【扫描到】更改缓存路径。
-
+
图像处理失败
-
+
OCR初始化错误
-
+
OCR错误
-
+
文件不存在
-
+
加载动态库失败
-
+
文件数据错误
-
+
图像格式处理错误
-
+
内存不足
-
+
错误
-
-
+
+
语言切换成功,下次启动软件时生效!
-
+
您确定彻底删除选中项文件?
-
-
+
-
+
-
+
-
+
+
已唤醒设备
-
+
就绪
@@ -2748,7 +2762,7 @@ Please finish scanning first.
请尝试在【用户】菜单登录管理员账户,前往【缓存设置】更改缓存路径
-
+
文件访问权限不足
@@ -2761,46 +2775,46 @@ Please finish scanning first.
图像处理失败
-
+
您确定要断开设备:
-
+
吗?
-
+
关闭
-
+
提示
-
+
未获取到其他版本
-
-
+
+
设备不支持该操作
-
-
+
+
IO错误
-
-
+
+
错误
@@ -2815,17 +2829,17 @@ Continue to close?
是否继续关闭?
-
+
是否确定登出管理员账户?
-
+
确认操作
-
+
你确定要清除滚轴计数吗
@@ -2834,36 +2848,36 @@ Continue to close?
请重新进入关于界面以获取最新值
-
-
+
+
-
-
+
+
-
+
滚轴张数
-
+
打开扫描仪
-
-
+
+
华高扫描软件
-
-
+
+
成功
@@ -2880,22 +2894,22 @@ Continue to close?
失败
-
-
+
+
失败
-
-
-
+
+
+
警告
-
-
-
+
+
+
当前路径磁盘空间不足,
请重新选择路径或及时清理磁盘空间。
@@ -2905,7 +2919,7 @@ Continue to close?
配置丢失
-
+
应用配置
@@ -2913,21 +2927,21 @@ Continue to close?
-
-
+
-
+
-
+
-
+
+
启动失败
@@ -3017,7 +3031,7 @@ Continue to close?
取消自动保存
-
+
切换图片时,自动保存编辑过的图像。若想取消,请取消勾选菜单项:图像->自动保存
@@ -3038,26 +3052,26 @@ Continue to close?
发现设备
-
+
重新连接
-
+
已经连接,但打开失败
-
+
存图失败:
-
-
+
+
创建文件夹失败:
@@ -3066,102 +3080,102 @@ Continue to close?
%1%2%3.%4
-
+
创建图片文件失败:
-
-
+
-
+
-
+
-
+
+
保存图片文件失败:
-
+
启动安装程序失败!
-
+
有图像未保存,确定关闭?
-
+
发现设备 : %1
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
提示
-
+
确定关闭应用软件?
-
+
确认操作
-
+
您确定要清除滚轴计数吗
-
-
-
+
+
+
提示
-
-
+
+
辊轴计数已置零
-
-
+
+
重置滚轴计数失败
-
+
错误
-
+
文档丢失!文档可能已被删除或被重命名。
@@ -3202,21 +3216,21 @@ Are you sure to close?
<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/Scanner_zh_EN.qm b/app/scanner/Scanner_zh_EN.qm
index e8eea80c..a6b6207c 100644
Binary files a/app/scanner/Scanner_zh_EN.qm and b/app/scanner/Scanner_zh_EN.qm differ
diff --git a/app/scanner/Scanner_zh_EN.ts b/app/scanner/Scanner_zh_EN.ts
index b408bb1d..6fb14d4b 100644
--- a/app/scanner/Scanner_zh_EN.ts
+++ b/app/scanner/Scanner_zh_EN.ts
@@ -159,7 +159,7 @@
Existing configuration plan:
-
+
Delete all configurations
@@ -168,12 +168,12 @@
Configuration information:
-
+
Rename
-
+
Delete
@@ -182,203 +182,216 @@
Apply
-
+
Found scheme
-
+
Table of Contents
-
+
-
+
Create a subfolder using the current date
-
+
Create subfolders according to blank pages
-
+
Create a subfolder according to the image color type
-
+
File name
-
+
File index
-
+
Start index
-
+
Number
-
+
-
+
-
+
-
+
-
+
-
+
For example HGScan001
-
+
Even number and odd number pages
-
+
Odd number page
-
+
Even number page
-
+
Format
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Compression options
-
+
Save multiple pages(TIFF/PDF/OFD/GIF)
-
+
All pages
-
+
User custom pages
-
+
+
Default scheme
-
-
-
-
+
+
+
+
For example"%1%2"
-
+
OK
-
+
Cancel
-
+
Folder path
+
+
+
+
+ Prompt
+
+
+
+
+
+ The configuration scheme already exists
+
Dialog_ClrCache
@@ -1151,17 +1164,17 @@ The page range will be “selected pages”
Cancel
-
+
Rename configuration
-
+
Prompt
-
+
The content can not be empty
@@ -2307,21 +2320,21 @@ Please make sure the two passwords are the same.
Cancel auto save
-
+
Save edited images automatically when switching images. If you want to cancel, please deselect the menu item: Auto save images.
-
-
-
-
-
+
+
+
+
+
Ask
-
+
Image modified, save changes?
@@ -2338,7 +2351,7 @@ Please make sure the two passwords are the same.
No
-
+
File lost; delete?
@@ -2347,89 +2360,89 @@ Please make sure the two passwords are the same.
Device discovered
-
+
Device discovered: %1
-
+
reconnect
-
+
connected, but failed to open
-
+
disconnected
-
-
-
+
+
+
Insufficient disk space for the current path.
Please reselect a path or clear disk space immediately.
-
-
-
+
+
+
Warning
-
+
Failed to save image:
-
-
+
+
Failed to create folder:
-
+
Failed to create image file:
-
-
+
-
+
-
+
-
+
+
Failed to save image:
-
+
Black and white
-
+
Grayscale
-
+
Color
@@ -2437,21 +2450,21 @@ Please reselect a path or clear disk space immediately.
-
-
+
-
+
-
+
-
+
+
Failed to start
@@ -2461,299 +2474,300 @@ Please reselect a path or clear disk space immediately.
UNI scanning software
-
+
+
Default scheme
-
-
+
-
+
-
+
-
+
+
Please wake up the device manually
-
-
+
-
+
-
+
-
+
+
Device is awake
-
+
Show thumbnail bar
-
+
Hide thumbnail bar
-
+
Clear and start scan
-
+
Do not clear and start scan
-
+
Cancel
-
+
Image already exists in the list of images.
Clear?
-
+
Open image
-
+
Insert image
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
prompt
-
-
-
+
+
+
Saved successfully
-
-
+
+
Image name already exists in the list
-
+
Please select at least one image and then export
-
+
File name
-
+
File path
-
+
File size
-
+
Creation time
-
+
Modification time
-
+
Access time
-
+
Format
-
+
Width
-
+
Height
-
+
Depth
-
+
Color mode
-
+
Pixels per inch
-
+
Print size
-
+
Frame
-
+
None
-
+
Black and white
-
+
Gray scale
-
+
Color
-
+
Not supported
-
+
Warning
-
+
Device is currently running!
Please stop scanning first.
-
+
There are unsaved images; are you sure you want to close?
-
+
Are you sure you want to close?
-
+
Are you sure you want to log out of the administrator account?
-
+
Confirm operation
-
+
Are you sure you want to clear the roller count?
-
-
-
+
+
+
Prompt
-
-
+
+
Roller count reset to zero.
-
-
+
+
Failed to reset roller count.
-
+
Error
-
+
File lost! File may be deleted or renamed.
-
+
Confirm operation
-
+
Are you sure you want to clear the roller count?
-
+
Unable to access the current path:%1
Please try to log in to the administrator account in the [User] menu and go to the [Cache settings] to change the cache path.
-
+
Unable to access the current path:%1
Please try to change the cache path in [Scan to].
@@ -2767,76 +2781,76 @@ Please try to change the cache path in [Scan to].
<p>%1</p><p>Version: %2<br>Copyright: © %3</p><p>%4%5%6%7%8%9</p>
-
-
+
+
About %1
-
-
+
+
<p>Version: %1</p>
-
-
+
+
<p>Copyright: © %1</p>
-
-
+
+
<p>%1: <a href='%2'>%3</a>
-
-
+
+
<p>%1: %2
-
+
Number of rollers
-
+
Open scanner
-
-
+
+
HUAGOSCAN scanning software
-
-
+
+
successfully
-
+
Ready
-
-
+
+
failed
-
-
+
+
Error
-
+
Failed to start!
@@ -2846,106 +2860,106 @@ Please try to change the cache path in [Scan to].
Please go to “Scan to” and change the accessible scan folder and then perform the scan.
-
+
Insufficient file access permissions
-
+
Image processing failed
-
+
OCR initialization error
-
+
OCR failed
-
+
File does not exist
-
+
Failed to load dynamic library
-
+
File data error
-
+
Image format processing error
-
+
Insufficient memory
-
+
Failed
-
+
Apply configuration
-
+
Are you sure you want to disconnect device:
-
+
?
-
+
Close
-
+
Prompt
-
+
No other versions obtained
-
-
+
+
Device does not support this operation
-
-
+
+
IO error
-
-
+
+
The language switch is successful and takes effect the next time the software is started!
-
+
Are you sure to delete the selected file completely?
diff --git a/app/scanner/dialog_aquireinto.cpp b/app/scanner/dialog_aquireinto.cpp
index ed3901bf..106a24ac 100644
--- a/app/scanner/dialog_aquireinto.cpp
+++ b/app/scanner/dialog_aquireinto.cpp
@@ -159,6 +159,12 @@ void Dialog_AquireInto::replaceCfgName(QString originName, QString newName)
HGBase_GetConfigPath(cfgPath, 512);
strcat(cfgPath, "config.ini");
+ QString currentKeyName = getCurrentCfgName();
+ if (currentKeyName == originName)
+ {
+ saveCfgValue("aquire", "currentKeyName", newName);
+ }
+
QString allCfgName = getCfgValue("aquire", "cfgNameList", QString(""));
QStringList allCfgNameList = allCfgName.split(",");
for (int i = 0; i < allCfgNameList.size(); ++i)
@@ -303,7 +309,10 @@ void Dialog_AquireInto::on_buttonBox_accepted()
}
}
- saveCfgBaseOnSection(currentCfgName);
+ if (ui->comboBox_cfgScheme->currentIndex() != 0)
+ {
+ saveCfgBaseOnSection(currentCfgName);
+ }
}
saveCfgValue("aquire", "currentKeyName", currentCfgName);
@@ -360,6 +369,16 @@ void Dialog_AquireInto::on_pbtn_changeName_clicked()
if (dlg.exec())
{
QString newCfgName = dlg.getText();
+
+ for (int i = 0; i < ui->comboBox_cfgScheme->count(); ++i)
+ {
+ if (newCfgName == ui->comboBox_cfgScheme->itemText(i))
+ {
+ QMessageBox::information(this, tr("tips"), tr("The configuration scheme already exists"));
+ return;
+ }
+ }
+
int count = ui->comboBox_cfgScheme->count();
for (int i = 0; i < count; ++i)
{
diff --git a/build2/qt/HGFWUpgrade/HGFWUpgrade.pro b/build2/qt/HGFWUpgrade/HGFWUpgrade.pro
index c057537f..709101cd 100644
--- a/build2/qt/HGFWUpgrade/HGFWUpgrade.pro
+++ b/build2/qt/HGFWUpgrade/HGFWUpgrade.pro
@@ -216,7 +216,7 @@ FORMS += \
RESOURCES += \
../../../app/fwupgrade/FWUpgrade_resource.qrc
-DISTFILES += \
+TRANSLATIONS += \
../../../app/fwupgrade/FWUpgrade_zh_CN.qm \
../../../app/fwupgrade/FWUpgrade_zh_CN.ts \
../../../app/fwupgrade/qt_zh_CN.qm \
diff --git a/build2/qt/HGScanner/HGScanner.pro b/build2/qt/HGScanner/HGScanner.pro
index 6f69c7c6..f702ee6f 100644
--- a/build2/qt/HGScanner/HGScanner.pro
+++ b/build2/qt/HGScanner/HGScanner.pro
@@ -338,7 +338,7 @@ FORMS += \
RESOURCES += \
../../../app/scanner/Scanner_resource.qrc
-DISTFILES += \
+TRANSLATIONS += \
../../../app/scanner/Scanner_zh_CN.qm \
../../../app/scanner/Scanner_zh_CN.ts \
../../../app/scanner/Scanner_zh_EN.qm \
diff --git a/build2/qt/HGUpgrade/HGUpgrade.pro b/build2/qt/HGUpgrade/HGUpgrade.pro
index eb38e1b3..b7d7aaaa 100644
--- a/build2/qt/HGUpgrade/HGUpgrade.pro
+++ b/build2/qt/HGUpgrade/HGUpgrade.pro
@@ -192,6 +192,6 @@ FORMS += \
RESOURCES += \
../../../app/upgrade/Upgrade_resource.qrc
-DISTFILES += \
+TRANSLATIONS += \
../../../app/upgrade/Upgrade_zh_CN.qm \
../../../app/upgrade/Upgrade_zh_CN.ts