yun hai 3 días
pai
achega
e9df43ca7f

+ 19 - 19
View/die-bonder-ui/MainWnd.cpp

@@ -69,15 +69,15 @@ void MainWnd::on_tabSystemBtn_clicked()
     return;
 
     QDialog settingsDialog(this);
-    settingsDialog.setWindowTitle(tr("Settings"));
+    settingsDialog.setWindowTitle(tr("Settings","设置"));
 
     QVBoxLayout mainLayout;
     settingsDialog.setLayout(&mainLayout);
 
     // Language Group
-    QLabel languageLabel(tr("Language:"));
-    QRadioButton englishRadio(tr("English"));
-    QRadioButton chineseRadio(tr("Chinese"));
+    QLabel languageLabel(tr("Language:","语言:"));
+    QRadioButton englishRadio(tr("English","英语"));
+    QRadioButton chineseRadio(tr("Chinese","中文"));
 
     QButtonGroup languageGroup;
     languageGroup.addButton(&englishRadio);
@@ -89,9 +89,9 @@ void MainWnd::on_tabSystemBtn_clicked()
     languageLayout.addWidget(&chineseRadio);
 
     // Theme Group
-    QLabel themeLabel(tr("Theme:"));
-    QRadioButton lightThemeRadio(tr("Light"));
-    QRadioButton darkThemeRadio(tr("Dark"));
+    QLabel themeLabel(tr("Theme:","主题"));
+    QRadioButton lightThemeRadio(tr("Light","亮色"));
+    QRadioButton darkThemeRadio(tr("Dark","暗色"));
 
     QButtonGroup themeGroup;
     themeGroup.addButton(&lightThemeRadio);
@@ -119,7 +119,7 @@ void MainWnd::on_tabSystemBtn_clicked()
     }
     else {
         chineseRadio.setChecked(true);
-        languageLabel.setText(tr("sss", "语言"));
+        languageLabel.setText(tr("language", "语言"));
         englishRadio.setText(tr("英语"));
         chineseRadio.setText(tr("中文"));
         themeLabel.setText(tr("主题"));
@@ -878,18 +878,18 @@ void MainWnd::Init()
 }
 
 void MainWnd::setChineseMode(QMainWindow* MainWnd) {
-    MainWnd->setWindowTitle(QCoreApplication::translate("MainWnd", "主界面", nullptr));
-    ui->tabHomeBtn->setText(QCoreApplication::translate("MainWnd", "首页", nullptr));
+    MainWnd->setWindowTitle(tr("MainWnd", "主界面"));
+    ui->tabHomeBtn->setText(tr("Home", "首页"));
     ui->label_logo_m->setText(QString());
-    ui->tabProductionBtn->setText(tr("MainWnd", "产品助手"));
-    ui->tabProgramBtn->setText(QCoreApplication::translate("MainWnd", "进程", nullptr));
-    ui->tabMessageBtn->setText(QCoreApplication::translate("MainWnd", "信息", nullptr));
-    ui->tabModuleBtn->setText(QCoreApplication::translate("MainWnd", "校准", nullptr));
-    ui->tabDispositionBtn->setText(QCoreApplication::translate("MainWnd", "模块配置", nullptr));
-    ui->tabDiagnosisBtn->setText(QCoreApplication::translate("MainWnd", "诊断", nullptr));
-    ui->tabSystemBtn->setText(QCoreApplication::translate("MainWnd", "系统信息", nullptr));
-    ui->tabHelpBtn->setText(QCoreApplication::translate("MainWnd", "帮助", nullptr));
-    ui->pushButton->setText(QCoreApplication::translate("MainWnd", "关闭", nullptr));
+    ui->tabProductionBtn->setText(tr("ProductHelp", "产品助手"));
+    ui->tabProgramBtn->setText(tr("Progress", "进程"));
+    ui->tabMessageBtn->setText(tr("Info", "信息"));
+    ui->tabModuleBtn->setText(tr("Calibration", "校准"));
+    ui->tabDispositionBtn->setText(tr("Module", "模块配置"));
+    ui->tabDiagnosisBtn->setText(tr("Diagnosis", "诊断"));
+    ui->tabSystemBtn->setText(tr("SysInfo", "系统信息"));
+    ui->tabHelpBtn->setText(tr("Help", "帮助"));
+    ui->pushButton->setText(tr("Close", "关闭"));
 }
 
 void MainWnd::on_pushButton_clicked()

+ 9 - 9
View/die-bonder-ui/OriginalWnd/DbTreeViewManager.cpp

@@ -2094,7 +2094,7 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
                         {//上下限至少设置了一个值
                             if (fieldValue == "")
                             {
-                                lineEdit->setPlaceholderText(tr("请输入数字"));
+                                lineEdit->setPlaceholderText(tr("Please input number","请输入数字"));
                             } else
                             {
                                 lineEdit->setText(fieldValue);
@@ -2198,7 +2198,7 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
 								}
 								else
 								{
-									lineEdit->setPlaceholderText(tr("超出设定范围,请重新输入"));
+									lineEdit->setPlaceholderText(tr("out of range,please input again","超出设定范围,请重新输入"));
 								}
 							}
 							else if (fieldDownLimit != "")
@@ -2215,7 +2215,7 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
 								}
 								else
 								{
-									lineEdit->setPlaceholderText(tr("超出设定范围,请重新输入"));
+									lineEdit->setPlaceholderText(tr("out of range,please input again","超出设定范围,请重新输入"));
 								}
 							}
 							else if (fieldUpLimit != "")
@@ -2232,7 +2232,7 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
 								}
 								else
 								{
-									lineEdit->setPlaceholderText(tr("超出设定范围,请重新输入"));
+									lineEdit->setPlaceholderText(tr("out of range,please input again","超出设定范围,请重新输入"));
 								}
 							}
 							else
@@ -2732,7 +2732,7 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
                         switchBox->setChecked(true);
                     else
                         switchBox->setChecked(false);
-                    QLabel* switchLabel = new QLabel(switchBox->isChecked() ? tr("开") :tr("关"));
+                    QLabel* switchLabel = new QLabel(switchBox->isChecked() ? tr("Open","开") :tr("Close","关"));
                     switchLabel->setAlignment(Qt::AlignVCenter | Qt::AlignLeft);
                     switchLabel->setStyleSheet("font-size: 14px;");
                     //connect(switchBox, &QCheckBox::stateChanged, [fieldTableName, fieldName, switchLabel, this](int state) {
@@ -2751,7 +2751,7 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
                     connect(switchBox, &QCheckBox::stateChanged, [switchLabel, this, label](int state) {
                         if (state == Qt::Checked)
                         {
-                            switchLabel->setText(tr("开"));
+                            switchLabel->setText(tr("Open","开"));
                             label->setProperty("value", "on");
                             label->setStyleSheet("color: #5c63be;");
                             modifiedLabels.insert(label);
@@ -2760,7 +2760,7 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
                         }
                         else
                         {
-                            switchLabel->setText(tr("关"));
+                            switchLabel->setText(tr("Close","关"));
                             label->setProperty("value", "off");
                             label->setStyleSheet("color: #5c63be;");
                             modifiedLabels.insert(label);
@@ -2795,11 +2795,11 @@ void DbTreeViewManager::displayThirdLevelFields(const QList<Table_Control_Data>&
                         if (!fieldDefult.isEmpty()) {
                             if (fieldDefult == "on") {
                                 switchBox->setChecked(true);
-                                switchLabel->setText(tr("开"));
+                                switchLabel->setText(tr("Open","开"));
                             }
                             else {
                                 switchBox->setChecked(false);
-                                switchLabel->setText(tr("关"));
+                                switchLabel->setText(tr("Close","关"));
                             }
                         }
                         });

+ 1 - 1
View/die-bonder-ui/Src/RewriteControl/LightJoystickSwitchPage.cpp

@@ -307,7 +307,7 @@ void LightJoystickSwitchPage::RunMoveOrMoveTo(bool isMoveTo)
     QString strNum = ui->valLineEdit->text().trimmed();
     if (strNum.isEmpty())
     {
-        strErrInfo = tr("","请输入值");
+        strErrInfo = tr("please input value","请输入值");
     }
     else
     {

+ 0 - 1
View/die-bonder-ui/main.cpp

@@ -13,7 +13,6 @@
 int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
-   
     MainWnd w;
     w.show();
     return a.exec();