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

@@ -39,33 +39,30 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
QHBoxLayout* layout =new QHBoxLayout(); QHBoxLayout* layout =new QHBoxLayout();
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);
QWidget* spacerLine= new QWidget(this); QWidget* spacerLine = new QWidget(this);
spacerLine->setFixedWidth(2); spacerLine->setFixedWidth(2);
spacerLine->setObjectName("verSpaceLine"); spacerLine->setObjectName("verSpaceLine");
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")); QButtonGroup* group = new QButtonGroup(this);
btnRight->setText(tr("Right")); btnLeft->setCheckable(true);
btnLeft->setChecked(true);
QButtonGroup* group = new QButtonGroup(this); btnRight->setCheckable(true);
btnLeft->setCheckable(true); group->addButton(btnRight, 1);
btnLeft->setChecked(true); group->addButton(btnLeft, 0);
btnRight->setCheckable(true); layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding));
group->addButton(btnRight,1); QWidget* spacerLine2 = new QWidget(this);
group->addButton(btnLeft,0); spacerLine2->setFixedWidth(2);
layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding)); spacerLine2->setObjectName("verSpaceLine");
QWidget* spacerLine2= new QWidget(this); layout->addWidget(spacerLine2);
spacerLine2->setFixedWidth(2); ADD_TOOL_BTN(Refresh, ":/icons/scan_e.png");
spacerLine2->setObjectName("verSpaceLine"); ADD_TOOL_BTN(Preview, ":/icons/rec.png");
layout->addWidget(spacerLine2);
ADD_TOOL_BTN(Refresh,":/icons/scan_e.png");
ADD_TOOL_BTN(Preview,":/icons/rec.png");
ADD_TOOL_BTN(Stop,":/icons/stop.png"); ADD_TOOL_BTN(Stop,":/icons/stop.png");
ADD_TOOL_BTN(Scan,":/icons/scan.png"); ADD_TOOL_BTN(Scan,":/icons/scan.png");

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>