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
/src/translations/*.ts
*.ts
/src/translations/copy.bat

View File

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

View File

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