translation improvement 6

This commit is contained in:
xueyan hu
2021-12-30 13:33:16 +08:00
parent 3338d040bd
commit 84d72bbd83
7 changed files with 95 additions and 51 deletions

View File

@@ -248,6 +248,8 @@ ScanFormWidget::ScanFormWidget(QWidget* parent) : TabFormWidget(parent) {
lbl_Protocol->setText(tr("Protocol"));
lblPreview->setText(tr("Preview Parameters"));
lblParams->setText(tr("Scan Parameters"));
lbl_e->setText(tr("some settings\n\nparameters\n"));
lbl_e2->setText(tr("some settings\n\nparameters\n"));
});

View File

@@ -1,16 +1,22 @@
#include "patientinformationform.h"
#include "ui_patientinformationform.h"
#include "json/cJSON.h"
#include "event/EventCenter.h"
PatientInformationForm::PatientInformationForm(QWidget* parent) :
QWidget(parent),
ui(new Ui::PatientInformationForm)
{
ui->setupUi(this);
ui->lbl_ID->setText("");
ui->lbl_Date->setText("");
ui->lbl_Name->setText("");
ui->lbl_Sex->setText("");
ui->lbl_Acc->setText("");
//ui->lbl_ID->setText(tr(""));
//ui->lbl_Date->setText(tr(""));
//ui->lbl_Name->setText(tr(""));
//ui->lbl_Sex->setText(tr(""));
//ui->lbl_Acc->setText(tr(""));
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
ui->retranslateUi(this);
});
}
PatientInformationForm::~PatientInformationForm()
@@ -33,11 +39,11 @@ void PatientInformationForm::setProtocol(int type) {
switch (type)
{
case 0:
ui->lbl_Protocol->setText("LEFT ONLY");
ui->lbl_Protocol->setText(tr("LEFT ONLY"));
break;
case 1:
default:
ui->lbl_Protocol->setText("RIGHT ONLY");
ui->lbl_Protocol->setText(tr("RIGHT ONLY"));
break;
}
}

View File

@@ -424,6 +424,10 @@
<source>LEFT ONLY</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RIGHT ONLY</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RollingMessageWidget</name>
@@ -600,6 +604,10 @@ parameters
<source>DICOM Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>networkCfgDialog</name>

View File

@@ -424,6 +424,10 @@
<source>LEFT ONLY</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RIGHT ONLY</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RollingMessageWidget</name>

Binary file not shown.

View File

@@ -588,12 +588,22 @@
</message>
<message>
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="128"/>
<location filename="../patientinformationform.cpp" line="42"/>
<source>LEFT ONLY</source>
<translation></translation>
</message>
<message>
<source>Name</source>
<translation type="obsolete"></translation>
</message>
<message>
<source>Gender</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../patientinformationform.cpp" line="46"/>
<source>RIGHT ONLY</source>
<translation type="vanished"></translation>
<translation></translation>
</message>
</context>
<context>
@@ -662,6 +672,8 @@
<message>
<location filename="../ScanFormWidget.cpp" line="101"/>
<location filename="../ScanFormWidget.cpp" line="113"/>
<location filename="../ScanFormWidget.cpp" line="251"/>
<location filename="../ScanFormWidget.cpp" line="252"/>
<source>some settings
parameters
@@ -827,7 +839,7 @@ parameters
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="333"/>
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="339"/>
<source>...</source>
<translation type="unfinished">DICOM</translation>
<translation>DICOM</translation>
</message>
<message>
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="334"/>
@@ -1001,7 +1013,7 @@ parameters
<message>
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="231"/>
<source>Protocal</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="235"/>

View File

@@ -588,12 +588,22 @@
</message>
<message>
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="128"/>
<location filename="../patientinformationform.cpp" line="42"/>
<source>LEFT ONLY</source>
<translation></translation>
</message>
<message>
<source>Name</source>
<translation type="obsolete"></translation>
</message>
<message>
<source>Gender</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../patientinformationform.cpp" line="46"/>
<source>RIGHT ONLY</source>
<translation type="vanished"></translation>
<translation></translation>
</message>
</context>
<context>
@@ -662,6 +672,8 @@
<message>
<location filename="../ScanFormWidget.cpp" line="101"/>
<location filename="../ScanFormWidget.cpp" line="113"/>
<location filename="../ScanFormWidget.cpp" line="251"/>
<location filename="../ScanFormWidget.cpp" line="252"/>
<source>some settings
parameters
@@ -827,7 +839,7 @@ parameters
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="333"/>
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="339"/>
<source>...</source>
<translation type="unfinished">DICOM</translation>
<translation>DICOM</translation>
</message>
<message>
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="334"/>
@@ -1001,7 +1013,7 @@ parameters
<message>
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="231"/>
<source>Protocal</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="235"/>