소스 검색

更新文档以及多语种的翻译

yun 1 주 전
부모
커밋
532fd6e5d9

BIN
Output/bin/x64/configurations.db


+ 5 - 5
View/die-bonder-ui/CameraMaterialGroupWnd/MaterialWindow/BondGraphicsView.cpp

@@ -192,12 +192,12 @@ void BondGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
         if (!isDragging) {
             QGraphicsItem* item = itemAt(event->pos());
             QMenu menu;
-            QAction* showThumb = menu.addAction(thumbnailVisible ? "隐藏缩略图" : "显示缩略图");
+            QAction* showThumb = menu.addAction(thumbnailVisible ? tr("Hide thumbnails", "隐藏缩略图") : tr("Show thumbnails", "显示缩略图"));
 
             connect(showThumb, &QAction::triggered, [this] {
                 thumbnailVisible ? hideThumbnail() : showThumbnail();
                 });
-            menu.addAction("发送位置", [this] {
+            menu.addAction(tr("Send Location", "发送位置"), [this] {
                 if (selectedItem) {
                     qDebug() << selectedItem->point.stIndex.iIndex;
                     selectedItem->setLeftSelected(false);
@@ -210,7 +210,7 @@ void BondGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
                 item = item->parentItem();
             }
             if (die) {
-                menu.addAction("移动到该位置", [this, die] {
+                menu.addAction(tr("move to current location","移动到该位置"), [this, die] {
                     for (auto& item : selectedItemsMap) {
                         BondItem* die = dynamic_cast<BondItem*>(item);
                         if (die) {
@@ -229,8 +229,8 @@ void BondGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
                     });
             }
 
-            menu.addAction("清除选中区域", [this] { clearRegion(); });
-            menu.addAction("设置区域", [this] { setRegion(); });
+            menu.addAction(tr("clear the selected area","清除选中区域"), [this] { clearRegion(); });
+            menu.addAction(tr("set area","设置区域"), [this] { setRegion(); });
 
             menu.exec(event->globalPos());
         }

+ 7 - 7
View/die-bonder-ui/CameraMaterialGroupWnd/MaterialWindow/WaffleGraphicsView.cpp

@@ -167,13 +167,13 @@ void WaffleGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
             QGraphicsItem* item = itemAt(event->pos());
             DieItem* die = dynamic_cast<DieItem*>(item);
             QMenu menu;
-            QAction* showThumb = menu.addAction(thumbnailVisible ? "隐藏缩略图" : "显示缩略图");
+            QAction* showThumb = menu.addAction(thumbnailVisible ? tr("Hide thumbnails", "隐藏缩略图") : tr("Show thumbnails", "显示缩略图"));
 
 
             connect(showThumb, &QAction::triggered, [this]{
                 thumbnailVisible ? hideThumbnail() : showThumbnail();
             });
-            menu.addAction("发送位置", [this] {
+            menu.addAction(tr("Send Location", "发送位置"), [this] {
                 if (selectedItem) {
                     qDebug() << "Row:" << selectedItem->getRow() << "Col:" << selectedItem->getCol();
                     selectedItem->setLeftSelected(false);
@@ -181,7 +181,7 @@ void WaffleGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
                 }
             });
             if (die) {
-                menu.addAction("移动到该位置", [this, die] {
+                menu.addAction(tr("move to current location","移动到该位置"), [this, die] {
                     for (auto& item : selectedItemsMap) {
                         DieItem* die = dynamic_cast<DieItem*>(item);
                         if (die) {
@@ -212,7 +212,7 @@ void WaffleGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
                 });
 
                 // 设置区域边界点菜单
-                menu.addAction("设为左上点", [this, die] {
+                menu.addAction(tr("set Top left point","设为左上点"), [this, die] {
                     if (topLeftItem && topLeftItem->scene()) {
                         topLeftItem->setRightSelected(false);
                     }
@@ -223,7 +223,7 @@ void WaffleGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
                     if (bottomRightIndex.first >= 0) checkAndCreateRegion();
                 });
 
-                menu.addAction("设为右下点", [this, die] {
+                menu.addAction(tr("set bottom right point","设为右下点"), [this, die] {
                     if (bottomRightItem && bottomRightItem->scene()) {
                         bottomRightItem->setRightSelected(false);
                     }
@@ -235,8 +235,8 @@ void WaffleGraphicsView::mouseReleaseEvent(QMouseEvent* event) {
                 });
             }
 
-            menu.addAction("清除选中区域", [this] { clearRegion(); });
-            menu.addAction("设置区域", [this] { setRegion(); });
+            menu.addAction(tr("clear the selected area","清除选中区域"), [this] { clearRegion(); });
+            menu.addAction(tr("set area","设置区域"), [this] { setRegion(); });
 
             menu.exec(event->globalPos());
         }

+ 2 - 2
View/die-bonder-ui/ImageView.cpp

@@ -187,8 +187,8 @@ void ImageView::mouseReleaseEvent(QMouseEvent* event) {
         if (!m_curDrawing) {
             if (!m_bRulerState) {
                 QMenu menu(this);
-                QAction* act1 = menu.addAction(tr("save picture"));
-                QAction* act2 = menu.addAction(tr("clear drawing"));
+                QAction* act1 = menu.addAction(tr("save picture","保存图片"));
+                QAction* act2 = menu.addAction(tr("clear drawing","清除画笔"));
                 QAction* act3 = menu.addAction(tr("clear selected rulers"));
 
                 connect(act1, &QAction::triggered, this, [this]() {

+ 1 - 2
View/die-bonder-ui/Login.h

@@ -31,8 +31,7 @@ private slots:
     void on_ExitButton_clicked();
 
 signals:
-    /**�����л������ź�
-     */
+
     void SendSwitchOriginalWndSignals();
 
     void CloseMainWndSig();

+ 41 - 40
View/die-bonder-ui/OriginalWnd/DbTreeViewManager.cpp

@@ -477,15 +477,16 @@ void DbTreeViewManager::loadDirectories(int configId, const int &userPrivilege)
         obj["Separator"] = query.value("Separator").toInt();
         obj["UserGrade"] = query.value("UserGrade").toString();
         obj["Circle"] = query.value("Circle").toInt();
-        qDebug() << "加载目录:"<< obj["Name"].toString() << " ParentId:" << obj["ParentId"].toInt()<< " Separator:" << obj["Separator"].toInt();
-        qDebug() << " Circle:" << obj["Circle"].toInt();
+        //qDebug() << "加载目录:"<< obj["Name"].toString() << " ParentId:" << obj["ParentId"].toInt()<< " Separator:" << obj["Separator"].toInt();
+        //qDebug() << " Circle:" << obj["Circle"].toInt();
 
         // 权限判断:只有当记录的 UserGrade 中包含当前用户权限时才加入
         bool ok;
-        if (hasPrivilege(obj["UserGrade"].toString().toInt(&ok,16), userPrivilege))
+        if (hasPrivilege(obj["UserGrade"].toString().toInt(&ok, 16), userPrivilege)) {
             directories.append(obj);
-        else
-            qDebug() << "目录跳过(权限不足):" << obj["Name"].toString();
+
+            //qDebug() << "目录跳过(权限不足):" << obj["Name"].toString();
+        }
     }
 
 
@@ -3255,7 +3256,7 @@ void DbTreeViewManager::onButtonBackClicked()
     promptSaveChanges();
     if (m_thirdLevelFieldWnd) {
         // 当前在第三层目录,返回到上一层目录
-        qDebug() << "当前在第三层目录,准备返回上一层。";
+        //qDebug() << "当前在第三层目录,准备返回上一层。";
         for(int i=0;i<5;i++){
             if(currentMenuId == menuArray[i].menuId){
                 menuArray[i].isthird = false;
@@ -3294,7 +3295,7 @@ void DbTreeViewManager::onButtonBackClicked()
         }
 
         if (path.isEmpty()) {
-            qWarning() << "导航路径为空,无法返回上一层。";
+           // qWarning() << "导航路径为空,无法返回上一层。";
             return;
         }
 
@@ -3302,14 +3303,14 @@ void DbTreeViewManager::onButtonBackClicked()
         path.removeLast();
 
         if (path.isEmpty()) {
-            qDebug() << "已经在根目录,无法返回。";
+           // qDebug() << "已经在根目录,无法返回。";
             return;
         }
 
         // 根据新的路径查找对应的 QModelIndex
         QModelIndex parentIndex = findItemByPath(path);
         if (!parentIndex.isValid()) {
-            qWarning() << "无法找到路径对应的目录项:" << path;
+            //qWarning() << "无法找到路径对应的目录项:" << path;
             return;
         }
 
@@ -3374,29 +3375,29 @@ void DbTreeViewManager::onButtonBackClicked()
     }
 
     //  如果不在第三层目录,则在目录树中返回上一层
-    qDebug() << "当前不在第三层目录,尝试在目录树中返回上一层。";
+   // qDebug() << "当前不在第三层目录,尝试在目录树中返回上一层。";
 
     QModelIndex currentIndex = m_pTreeViewDown->currentIndex();
     if (!currentIndex.isValid()) {
-        qWarning() << "当前没有选中的目录项,无法返回。";
+       // qWarning() << "当前没有选中的目录项,无法返回。";
         return;
     }
 
     QStandardItem* currentItem = m_pCModel->itemFromIndex(currentIndex);
     if (!currentItem) {
-        qWarning() << "当前选中的目录项无效。";
+      //  qWarning() << "当前选中的目录项无效。";
         return;
     }
 
     QStandardItem* parentItem = currentItem->parent();
     if (!parentItem) {
-        qDebug() << "当前已经在根目录,无法返回。";
+      //  qDebug() << "当前已经在根目录,无法返回。";
         return;
     }
 
     QModelIndex parentIndex = m_pCModel->indexFromItem(parentItem);
     if (!parentIndex.isValid()) {
-        qWarning() << "父目录的 QModelIndex 无效。";
+       // qWarning() << "父目录的 QModelIndex 无效。";
         return;
     }
 
@@ -3484,14 +3485,14 @@ void DbTreeViewManager::onButtonDownClicked()
     // 1) 收集所有 第三层 节点
     QList<QStandardItem*> thirdLevelList = collectAllThirdLevelItems();
     if (thirdLevelList.isEmpty()) {
-        qDebug() << "[onButtonDownClicked] 没有任何三级目录,无法遍历。";
+        //qDebug() << "[onButtonDownClicked] 没有任何三级目录,无法遍历。";
         return;
     }
 
     // 2) 找到  当前选中的节点 在 thirdLevelList 里的索引
     QModelIndex curIndex = m_pTreeViewDown->currentIndex();
     if (!curIndex.isValid()) {
-        qDebug() << "[onButtonDownClicked] 当前没有选中节点,默认跳到第一个三级目录。";
+       // qDebug() << "[onButtonDownClicked] 当前没有选中节点,默认跳到第一个三级目录。";
         // 如果想默认跳到第一个
         QStandardItem *firstItem = thirdLevelList.first();
         QModelIndex idx = m_pCModel->indexFromItem(firstItem);
@@ -3507,7 +3508,7 @@ void DbTreeViewManager::onButtonDownClicked()
 
     QStandardItem *curItem = m_pCModel->itemFromIndex(curIndex);
     if (!curItem) {
-        qWarning() << "[onButtonDownClicked] currentItem 无效。";
+        //qWarning() << "[onButtonDownClicked] currentItem 无效。";
         return;
     }
 
@@ -3517,7 +3518,7 @@ void DbTreeViewManager::onButtonDownClicked()
         // 在 thirdLevelList 里找到 curItem
         currentPos = thirdLevelList.indexOf(curItem);
         if (currentPos < 0) {
-            qDebug() << "[onButtonDownClicked] 当前节点不是三级目录,尝试找父级是不是三级目录…";
+            //qDebug() << "[onButtonDownClicked] 当前节点不是三级目录,尝试找父级是不是三级目录…";
             // 向上找父节点是否在 thirdLevelList 里
             QStandardItem *temp = curItem->parent();
             while (temp) {
@@ -3529,7 +3530,7 @@ void DbTreeViewManager::onButtonDownClicked()
                 temp = temp->parent();
             }
             if (currentPos < 0) {
-                qDebug() << "还是找不到,说明当前目录不属于任何三级目录,直接跳到第一个";
+               // qDebug() << "还是找不到,说明当前目录不属于任何三级目录,直接跳到第一个";
                 QStandardItem *firstItem = thirdLevelList.first();
                 QModelIndex idx = m_pCModel->indexFromItem(firstItem);
                 m_pTreeViewDown->setCurrentIndex(idx);
@@ -3546,7 +3547,7 @@ void DbTreeViewManager::onButtonDownClicked()
     //  尝试下一个
     int nextPos = currentPos + 1;
     if (nextPos >= thirdLevelList.size()) {
-        qDebug() << "[onButtonDownClicked] 已经是最后一个三级目录了,无法再向下。";
+        //qDebug() << "[onButtonDownClicked] 已经是最后一个三级目录了,无法再向下。";
         return;
     }
 
@@ -3568,14 +3569,14 @@ void DbTreeViewManager::onButtonUpClicked()
     // 1) 收集所有 第三层 节点
     QList<QStandardItem*> thirdLevelList = collectAllThirdLevelItems();
     if (thirdLevelList.isEmpty()) {
-        qDebug() << "[onButtonUpClicked] 没有任何三级目录,无法遍历。";
+        //qDebug() << "[onButtonUpClicked] 没有任何三级目录,无法遍历。";
         return;
     }
 
     // 2) 找到 当前选中的节点
     QModelIndex curIndex = m_pTreeViewDown->currentIndex();
     if (!curIndex.isValid()) {
-        qDebug() << "[onButtonUpClicked] 当前无选中节点,默认跳到最后一个三级目录。";
+       // qDebug() << "[onButtonUpClicked] 当前无选中节点,默认跳到最后一个三级目录。";
         //  跳到最后一个
         QStandardItem *lastItem = thirdLevelList.last();
         QModelIndex idx = m_pCModel->indexFromItem(lastItem);
@@ -3598,7 +3599,7 @@ void DbTreeViewManager::onButtonUpClicked()
     //  如果当前节点不是三级目录, 向上查找
     int currentPos = thirdLevelList.indexOf(curItem);
     if (currentPos < 0) {
-        qDebug() << "[onButtonUpClicked] 当前节点不是三级目录,尝试找父级是不是三级目录。";
+       // qDebug() << "[onButtonUpClicked] 当前节点不是三级目录,尝试找父级是不是三级目录。";
         QStandardItem *temp = curItem->parent();
         while (temp) {
             int pos = thirdLevelList.indexOf(temp);
@@ -3609,7 +3610,7 @@ void DbTreeViewManager::onButtonUpClicked()
             temp = temp->parent();
         }
         if (currentPos < 0) {
-            qDebug() << "找不到任何三级目录,直接跳到最后一个。";
+          //  qDebug() << "找不到任何三级目录,直接跳到最后一个。";
             QStandardItem *lastItem = thirdLevelList.last();
             QModelIndex idx = m_pCModel->indexFromItem(lastItem);
             m_pTreeViewDown->setCurrentIndex(idx);
@@ -3625,7 +3626,7 @@ void DbTreeViewManager::onButtonUpClicked()
     //  尝试上一个
     int prevPos = currentPos - 1;
     if (prevPos < 0) {
-        qDebug() << "[onButtonUpClicked] 已经是第一个三级目录了,无法再向上。";
+       // qDebug() << "[onButtonUpClicked] 已经是第一个三级目录了,无法再向上。";
         return;
     }
 
@@ -3646,7 +3647,7 @@ void DbTreeViewManager::onButtonRightClicked()
 {
     promptSaveChanges();
     if (m_forwardStack.isEmpty()) {
-        qDebug() << "[Forward] 已经没有可以前进的页面";
+        //qDebug() << "[Forward] 已经没有可以前进的页面";
         buttonRight->setIcon(QIcon(":/images/home_right.png"));
         return;
     }
@@ -3669,7 +3670,7 @@ void DbTreeViewManager::onButtonLeftClicked()
 {
     promptSaveChanges();
     if (m_backStack.size() < 2) {
-        qDebug() << "[Back] 已经无法再后退";
+        //qDebug() << "[Back] 已经无法再后退";
         buttonLeft->setIcon(QIcon(":/images/home_left_hide.png"));
         return;
     }
@@ -3718,13 +3719,13 @@ QModelIndex DbTreeViewManager::findItemByPath(const QStringList &path)
             QStandardItem *child = currentItem->child(i);
             if (child == nullptr)
             {
-                qDebug() << "child is nullptr";
+               // qDebug() << "child is nullptr";
             }
             if (child->text() == part) {
                 currentIndex = m_pCModel->indexFromItem(child);
                 currentItem = child;
                 found = true;
-                qDebug() << "找到路径部分:" << part;
+               // qDebug() << "找到路径部分:" << part;
                 break;
             }
         }
@@ -3750,10 +3751,10 @@ void DbTreeViewManager::setCheckedPaths(const QStringList &checkedPathsList)
             QStandardItem *item = m_pCModel->itemFromIndex(idx);
             if (item) {
                 item->setCheckState(Qt::Checked);
-                qDebug() << " Setting item:" << item->text() << "to Checked";
+                //qDebug() << " Setting item:" << item->text() << "to Checked";
             }
         } else {
-            qDebug() << "Path not found:" << pathStr;
+            //qDebug() << "Path not found:" << pathStr;
         }
     }
 
@@ -3804,7 +3805,7 @@ void DbTreeViewManager::updateParentItems(QStandardItem *parentItem)
 
     int checkedCount = 0;
     int totalCount = parentItem->rowCount();
-    qDebug() << "Updating child items of:" << parentItem->text();
+    //qDebug() << "Updating child items of:" << parentItem->text();
 
     for (int i = 0; i < totalCount; ++i)
     {
@@ -4137,14 +4138,14 @@ void DbTreeViewManager::saveCheckedPaths()
 
     settings.endGroup();
 
-    qDebug() << "保存复选框状态路径:" << checkedList;
+    //qDebug() << "保存复选框状态路径:" << checkedList;
 }
 
 // 加载选中路径
 void DbTreeViewManager::loadCheckedPaths()
 {
     if (m_currentConfigName == "") {
-        qWarning() << "当前配置ID无效,无法加载复选框状态。";
+        //qWarning() << "当前配置ID无效,无法加载复选框状态。";
         return;
     }
 
@@ -4159,7 +4160,7 @@ void DbTreeViewManager::loadCheckedPaths()
 
     settings.endGroup();
 
-    qDebug() << "加载复选框状态路径:" << loadedChecked;
+    //qDebug() << "加载复选框状态路径:" << loadedChecked;
 
     m_blockItemChanged = true;
 
@@ -4227,14 +4228,14 @@ void DbTreeViewManager::saveExpandedPaths()
 
     settings.endGroup();
 
-    qDebug() << "保存展开路径:" << expandedList;
+    //qDebug() << "保存展开路径:" << expandedList;
 }
 
 // 加载展开路径
 void DbTreeViewManager::loadExpandedPaths()
 {
     if (m_currentConfigName == "") {
-        qWarning() << "当前配置ID无效,无法加载展开路径。";
+        //qWarning() << "当前配置ID无效,无法加载展开路径。";
         return;
     }
 
@@ -4249,7 +4250,7 @@ void DbTreeViewManager::loadExpandedPaths()
 
     settings.endGroup();
 
-    qDebug() << "加载展开路径:" << loadedExpanded;
+    //qDebug() << "加载展开路径:" << loadedExpanded;
 
     m_blockItemChanged = true;
 
@@ -4260,9 +4261,9 @@ void DbTreeViewManager::loadExpandedPaths()
         if (idx.isValid()) {
             m_pTreeViewDown->expand(idx);
             expandedPaths.insert(p);
-            qDebug() << "成功恢复展开路径:" << p;
+           // qDebug() << "成功恢复展开路径:" << p;
         } else {
-            qDebug() << "未找到展开路径部分: " << p;
+          //  qDebug() << "未找到展开路径部分: " << p;
         }
     }
 

BIN
View/die-bonder-ui/SBT_en.qm


+ 110 - 41
View/die-bonder-ui/SBT_en.ts

@@ -91,27 +91,27 @@
     <message>
         <source>Add or modify user name</source>
         <extracomment>添加修改用户名称</extracomment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>user ID:</source>
         <extracomment>用户名称:</extracomment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>full name:</source>
         <extracomment>全名:</extracomment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>Confirm Password:</source>
         <extracomment>确认密码:</extracomment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>Password:</source>
         <extracomment>密码:</extracomment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>Finish</source>
@@ -175,6 +175,39 @@
         <translation type="unfinished"></translation>
     </message>
 </context>
+<context>
+    <name>BondGraphicsView</name>
+    <message>
+        <source>Hide thumbnails</source>
+        <comment>隐藏缩略图</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>Show thumbnails</source>
+        <comment>显示缩略图</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>Send Location</source>
+        <comment>发送位置</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>move to current location</source>
+        <comment>移动到该位置</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>clear the selected area</source>
+        <comment>清除选中区域</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>set area</source>
+        <comment>设置区域</comment>
+        <translation></translation>
+    </message>
+</context>
 <context>
     <name>ChartsAndCamerasWnd</name>
     <message>
@@ -324,39 +357,46 @@
 <context>
     <name>ImageView</name>
     <message>
-        <source>����ͼƬ</source>
+        <source>test ruler</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>PNG �ļ� (*.png);;JPEG �ļ� (*.jpg);;�����ļ� (*)</source>
-        <translation type="unfinished"></translation>
+        <source>save picture</source>
+        <translation></translation>
     </message>
     <message>
-        <source>����ʧ��</source>
+        <source>PNG  (*.png);;JPEG  (*.jpg);; (*)</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>�޷�����ͼƬ��ָ��·����</source>
-        <translation type="unfinished"></translation>
+        <source>save failed</source>
+        <translation></translation>
     </message>
     <message>
-        <source>�����ɹ�</source>
-        <translation type="unfinished"></translation>
+        <source>The picture cannot be saved to the specified path</source>
+        <translation></translation>
     </message>
     <message>
-        <source>ͼƬ�ѳɹ����浽��</source>
-        <translation type="unfinished"></translation>
+        <source>save sucessful</source>
+        <translation></translation>
     </message>
     <message>
-        <source>test ruler</source>
-        <translation type="unfinished"></translation>
+        <source>The picture has been successfully saved to:</source>
+        <translation></translation>
     </message>
     <message>
         <source>save picture</source>
+        <comment>保存图片</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>clear</source>
+        <source>clear drawing</source>
+        <comment>清除画笔</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>clear selected rulers</source>
+        <comment>清除选中的标尺</comment>
         <translation type="unfinished"></translation>
     </message>
 </context>
@@ -382,17 +422,14 @@
     </message>
     <message>
         <source>Currently exiting.....</source>
-        <comment>��ǰ�����˳�.....</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>The current camera initialization failed and no camera is available.</source>
-        <comment>��ǰ������ʼ��ʧ�ܣ�û�п�������</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>hint</source>
-        <comment>��ʾ</comment>
         <translation type="unfinished"></translation>
     </message>
 </context>
@@ -548,7 +585,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>1</source>
+        <source>admin</source>
         <translation type="unfinished"></translation>
     </message>
 </context>
@@ -646,14 +683,6 @@
         <source>Are you sure you want to close the application?</source>
         <translation type="unfinished"></translation>
     </message>
-    <message>
-        <source>确认关闭</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <source>你确定要关闭程序吗</source>
-        <translation type="unfinished"></translation>
-    </message>
     <message>
         <source>Settings</source>
         <comment>设置</comment>
@@ -770,17 +799,14 @@ production</translation>
     <name>QObject</name>
     <message>
         <source>SqlOperation:Initialization failed, please check</source>
-        <comment>��ʼ��ʧ��,������</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>The database file does not exist:</source>
-        <comment>���ݿ��ļ�������:</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>Database open failure:</source>
-        <comment>���ݿ�����ʧ��:</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
@@ -823,42 +849,85 @@ production</translation>
     <message>
         <source>Hide thumbnails</source>
         <comment>隐藏缩略图</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>Show thumbnails</source>
         <comment>显示缩略图</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>Send Location</source>
         <comment>发送位置</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>move to current location</source>
         <comment>移动到该位置</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>set Top left point</source>
         <comment>设为左上点</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>set bottom right point</source>
         <comment>设为右下点</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>clear the selected area</source>
         <comment>清除选中区域</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
     </message>
     <message>
         <source>set area</source>
         <comment>设置区域</comment>
-        <translation type="unfinished"></translation>
+        <translation></translation>
+    </message>
+</context>
+<context>
+    <name>WaffleGraphicsView</name>
+    <message>
+        <source>Hide thumbnails</source>
+        <comment>隐藏缩略图</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>Show thumbnails</source>
+        <comment>显示缩略图</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>Send Location</source>
+        <comment>发送位置</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>move to current location</source>
+        <comment>移动到该位置</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>set Top left point</source>
+        <comment>设为左上点</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>set bottom right point</source>
+        <comment>设为右下点</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>clear the selected area</source>
+        <comment>清除选中区域</comment>
+        <translation></translation>
+    </message>
+    <message>
+        <source>set area</source>
+        <comment>设置区域</comment>
+        <translation></translation>
     </message>
 </context>
 </TS>

BIN
View/die-bonder-ui/SBT_zh_CN.qm


+ 98 - 9
View/die-bonder-ui/SBT_zh_CN.ts

@@ -175,6 +175,39 @@
         <translation type="unfinished"></translation>
     </message>
 </context>
+<context>
+    <name>BondGraphicsView</name>
+    <message>
+        <source>Hide thumbnails</source>
+        <comment>隐藏缩略图</comment>
+        <translation>隐藏缩略图</translation>
+    </message>
+    <message>
+        <source>Show thumbnails</source>
+        <comment>显示缩略图</comment>
+        <translation>显示缩略图</translation>
+    </message>
+    <message>
+        <source>Send Location</source>
+        <comment>发送位置</comment>
+        <translation>发送位置</translation>
+    </message>
+    <message>
+        <source>move to current location</source>
+        <comment>移动到该位置</comment>
+        <translation>移动到该位置</translation>
+    </message>
+    <message>
+        <source>clear the selected area</source>
+        <comment>清除选中区域</comment>
+        <translation>清除选中区域</translation>
+    </message>
+    <message>
+        <source>set area</source>
+        <comment>设置区域</comment>
+        <translation>设置区域</translation>
+    </message>
+</context>
 <context>
     <name>ChartsAndCamerasWnd</name>
     <message>
@@ -369,11 +402,11 @@
     </message>
     <message>
         <source>save picture</source>
-        <translation></translation>
+        <translation>保存图片</translation>
     </message>
     <message>
         <source>clear</source>
-        <translation>清除</translation>
+        <translation type="vanished">清除</translation>
     </message>
     <message>
         <source>PNG  (*.png);;JPEG  (*.jpg);; (*)</source>
@@ -395,6 +428,21 @@
         <source>The picture has been successfully saved to:</source>
         <translation>图片已经成功保存到:</translation>
     </message>
+    <message>
+        <source>save picture</source>
+        <comment>保存图片</comment>
+        <translation>保存图片</translation>
+    </message>
+    <message>
+        <source>clear drawing</source>
+        <comment>清除画笔</comment>
+        <translation>清除画笔</translation>
+    </message>
+    <message>
+        <source>clear selected rulers</source>
+        <comment>清除选中的标尺</comment>
+        <translation>清除选中的标尺</translation>
+    </message>
 </context>
 <context>
     <name>ImageWidget</name>
@@ -418,17 +466,14 @@
     </message>
     <message>
         <source>Currently exiting.....</source>
-        <comment>��ǰ�����˳�.....</comment>
         <translation>当前正在退出.....</translation>
     </message>
     <message>
         <source>The current camera initialization failed and no camera is available.</source>
-        <comment>��ǰ������ʼ��ʧ�ܣ�û�п�������</comment>
         <translation>当前相机初始化失败,没有可用相机</translation>
     </message>
     <message>
         <source>hint</source>
-        <comment>��ʾ</comment>
         <translation>提示</translation>
     </message>
 </context>
@@ -585,7 +630,11 @@
     </message>
     <message>
         <source>1</source>
-        <translation type="unfinished">1</translation>
+        <translation type="obsolete">1</translation>
+    </message>
+    <message>
+        <source>admin</source>
+        <translation type="unfinished"></translation>
     </message>
 </context>
 <context>
@@ -769,17 +818,14 @@ production</source>
     <name>QObject</name>
     <message>
         <source>SqlOperation:Initialization failed, please check</source>
-        <comment>��ʼ��ʧ��,������</comment>
         <translation>SqlOperation:初始化失败,请检查</translation>
     </message>
     <message>
         <source>The database file does not exist:</source>
-        <comment>���ݿ��ļ�������:</comment>
         <translation>数据库文件不存在</translation>
     </message>
     <message>
         <source>Database open failure:</source>
-        <comment>���ݿ�����ʧ��:</comment>
         <translation>数据库打开失败</translation>
     </message>
     <message>
@@ -860,4 +906,47 @@ production</source>
         <translation>设置区域</translation>
     </message>
 </context>
+<context>
+    <name>WaffleGraphicsView</name>
+    <message>
+        <source>Hide thumbnails</source>
+        <comment>隐藏缩略图</comment>
+        <translation>隐藏缩略图</translation>
+    </message>
+    <message>
+        <source>Show thumbnails</source>
+        <comment>显示缩略图</comment>
+        <translation>显示缩略图</translation>
+    </message>
+    <message>
+        <source>Send Location</source>
+        <comment>发送位置</comment>
+        <translation>发送位置</translation>
+    </message>
+    <message>
+        <source>move to current location</source>
+        <comment>移动到该位置</comment>
+        <translation>移动到该位置</translation>
+    </message>
+    <message>
+        <source>set Top left point</source>
+        <comment>设为左上点</comment>
+        <translation>设为左上点</translation>
+    </message>
+    <message>
+        <source>set bottom right point</source>
+        <comment>设为右下点</comment>
+        <translation>设为右下点</translation>
+    </message>
+    <message>
+        <source>clear the selected area</source>
+        <comment>清除选中区域</comment>
+        <translation>清除选中区域</translation>
+    </message>
+    <message>
+        <source>set area</source>
+        <comment>设置区域</comment>
+        <translation>设置区域</translation>
+    </message>
+</context>
 </TS>

BIN
新功能需求完成情况4.21.xls