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

View File

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

View File

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

Binary file not shown.

View File

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

View File

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