translation work

This commit is contained in:
xueyan hu
2021-12-23 16:31:07 +08:00
parent 27f417ebf6
commit a9fb7aae35
3 changed files with 33 additions and 27 deletions

1
.gitignore vendored
View File

@@ -11,3 +11,4 @@
/CMakeSettings.json /CMakeSettings.json
/src/translations/*.ts /src/translations/*.ts
*.ts *.ts
/src/translations/copy.bat

View File

@@ -40,7 +40,7 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
ui->commandWidget->setLayout(layout); ui->commandWidget->setLayout(layout);
QLabel* lbl_Protocol = new QLabel(this); QLabel* lbl_Protocol = new QLabel(this);
lbl_Protocol->setText("Protocol"); lbl_Protocol->setText(tr("Protocol"));
lbl_Protocol->setAlignment(Qt::AlignTop); lbl_Protocol->setAlignment(Qt::AlignTop);
lbl_Protocol->setObjectName("lbl_protocol"); lbl_Protocol->setObjectName("lbl_protocol");
layout->addWidget(lbl_Protocol); layout->addWidget(lbl_Protocol);
@@ -50,9 +50,6 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
layout->addWidget(spacerLine); layout->addWidget(spacerLine);
ADD_TOOL_BTN(Left, ":/icons/left.png"); ADD_TOOL_BTN(Left, ":/icons/left.png");
ADD_TOOL_BTN(Right, ":/icons/right.png"); ADD_TOOL_BTN(Right, ":/icons/right.png");
btnLeft->setText(tr("Left"));
btnRight->setText(tr("Right"));
QButtonGroup* group = new QButtonGroup(this); QButtonGroup* group = new QButtonGroup(this);
btnLeft->setCheckable(true); btnLeft->setCheckable(true);
btnLeft->setChecked(true); btnLeft->setChecked(true);

View File

@@ -318,6 +318,14 @@
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context>
<name>GetAdminPsw</name>
<message>
<location filename="../network/getadminpsw.cpp" line="15"/>
<source>Admin Password</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>GetIPDialog</name> <name>GetIPDialog</name>
<message> <message>