feat: Add some translate text.

This commit is contained in:
sunwen
2025-06-05 15:43:12 +08:00
parent 1a1df72892
commit 260606fdf0
3 changed files with 131 additions and 32 deletions

View File

@@ -87,17 +87,17 @@ QString UsctStateManager::getStateErrorMessage(int aStateCode)
{
switch (aStateCode)
{
case DmsState : return "Dms Error";
case DmsConnectionState : return "Dms Connection Error";
case ReconState : return "Recon Fatal Error";
case ReconMppsState : return "Recon Mpps Connection Error";
case ReconPacsState1 : return "Recon Pacs Node1 Connection Error";
case ReconPacsState2 : return "Recon Pacs Node2 Connection Error";
case ReconPacsState3 : return "Recon Pacs Node3 Connection Error";
case ReconEmptyScanState : return "Recon Empty Scan Data Error";
case ReconDBState : return "Recon Database Connection Error";
case ReconConnectionState : return "Recon Connection Error";
default: return "Unknow Error";
case DmsState : return tr("Dms Init Error");
case DmsConnectionState : return tr("Dms Connection Error");
case ReconState : return tr("Recon Fatal Error");
case ReconMppsState : return tr("Recon Mpps Connection Error");
case ReconPacsState1 : return tr("Recon Pacs Node1 Connection Error");
case ReconPacsState2 : return tr("Recon Pacs Node2 Connection Error");
case ReconPacsState3 : return tr("Recon Pacs Node3 Connection Error");
case ReconEmptyScanState : return tr("Recon Empty Scan Data Error");
case ReconDBState : return tr("Recon Database Connection Error");
case ReconConnectionState : return tr("Recon Connection Error");
default: return tr("Unknow Error");
}
}

View File

@@ -2103,6 +2103,50 @@ The emergency button has been pushed. Please reset it before other operations.</
<source>Recon DB error.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Dms Init Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Dms Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Fatal Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Mpps Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Pacs Node1 Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Pacs Node2 Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Pacs Node3 Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Empty Scan Data Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Database Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Recon Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unknow Error</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UserOperationLogForm</name>

View File

@@ -498,7 +498,7 @@
<location filename="../device/DeviceManager.cpp" line="412"/>
<source>Patient can leave.
progress:%1%</source>
<translation type="unfinished">
<translation type="unfinished">
:%1%</translation>
</message>
<message>
@@ -1105,7 +1105,7 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../action/GetWorkListAction.cpp" line="22"/>
<source>No reference record find!</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../action/GetWorkListAction.cpp" line="26"/>
@@ -1391,7 +1391,7 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../../../build-GUI-Desktop_Qt_5_12_0_GCC_64bit-Default/ui_Keyboard.h" line="615"/>
<source>Clear</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
</context>
<context>
@@ -1469,12 +1469,12 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../windows/LoginDialog.cpp" line="86"/>
<source>New password:%1</source>
<translation type="unfinished"></translation>
<translation type="unfinished">:%1</translation>
</message>
<message>
<location filename="../windows/LoginDialog.cpp" line="87"/>
<source>Reset success</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../windows/LoginDialog.cpp" line="103"/>
@@ -1529,7 +1529,7 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../windows/LoginDialog.cpp" line="240"/>
<source>System mode Notice</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
</context>
<context>
@@ -1561,7 +1561,7 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../dicom/MPPSAsyncAction.cpp" line="59"/>
<source>MPPS initNetwork failed!</source>
<translation type="unfinished"></translation>
<translation type="unfinished">MPPS网络初始化失败</translation>
</message>
<message>
<location filename="../dicom/MPPSAsyncAction.cpp" line="67"/>
@@ -1571,12 +1571,12 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../dicom/MPPSAsyncAction.cpp" line="76"/>
<source>MPPS context error!</source>
<translation type="unfinished"></translation>
<translation type="unfinished">MPPS发送失败</translation>
</message>
<message>
<location filename="../dicom/MPPSAsyncAction.cpp" line="143"/>
<source>MPPS fail by error:</source>
<translation type="unfinished"></translation>
<translation type="unfinished">MPPS失败</translation>
</message>
</context>
<context>
@@ -1584,12 +1584,12 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../dicom/MPPSManager.cpp" line="23"/>
<source>Create MPPSUID error!</source>
<translation type="unfinished"></translation>
<translation type="unfinished">MPPSUID失败</translation>
</message>
<message>
<location filename="../dicom/MPPSManager.cpp" line="33"/>
<source>Update MPPSUID success!</source>
<translation type="unfinished"></translation>
<translation type="unfinished">MPPSUID更新成功</translation>
</message>
</context>
<context>
@@ -2061,7 +2061,7 @@ After lying down, click the confirm buttonto start scanning on the next side.</s
<message>
<location filename="../../../build-GUI-Desktop_Qt_5_12_0_GCC_64bit-Default/ui_PatientInformationForm.h" line="170"/>
<source>Current Patient</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-GUI-Desktop_Qt_5_12_0_GCC_64bit-Default/ui_PatientInformationForm.h" line="171"/>
@@ -2251,7 +2251,7 @@ The emergency button has been pushed. Please reset it before other operations.</
<location filename="../forms/recon/ReconFormWidget.cpp" line="104"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="140"/>
<source>Patient ID</source>
<translation type="unfinished">ID</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="105"/>
@@ -2263,7 +2263,7 @@ The emergency button has been pushed. Please reset it before other operations.</
<location filename="../forms/recon/ReconFormWidget.cpp" line="106"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="142"/>
<source>Patient Name</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="109"/>
@@ -2730,12 +2730,12 @@ parameters
<message>
<location filename="../../../build-GUI-Desktop_Qt_5_12_0_GCC_64bit-Default/ui_ScanSearchCriteriaForm.h" line="278"/>
<source>Patient ID</source>
<translation type="unfinished">ID</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-GUI-Desktop_Qt_5_12_0_GCC_64bit-Default/ui_ScanSearchCriteriaForm.h" line="279"/>
<source>Patient Name</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-GUI-Desktop_Qt_5_12_0_GCC_64bit-Default/ui_ScanSearchCriteriaForm.h" line="281"/>
@@ -3255,6 +3255,61 @@ parameters
<source>Recon DB error.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="90"/>
<source>Dms Init Error</source>
<translation type="unfinished">DMS初始化错误</translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="91"/>
<source>Dms Connection Error</source>
<translation type="unfinished">DMS失去连接</translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="92"/>
<source>Recon Fatal Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="93"/>
<source>Recon Mpps Connection Error</source>
<translation type="unfinished">MPPS连接失败</translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="94"/>
<source>Recon Pacs Node1 Connection Error</source>
<translation type="unfinished">PACS节点1连接失败</translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="95"/>
<source>Recon Pacs Node2 Connection Error</source>
<translation type="unfinished">PACS节点2连接失败</translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="96"/>
<source>Recon Pacs Node3 Connection Error</source>
<translation type="unfinished">PACS节点3连接失败</translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="97"/>
<source>Recon Empty Scan Data Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="98"/>
<source>Recon Database Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="99"/>
<source>Recon Connection Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/UsctStateManager.cpp" line="100"/>
<source>Unknow Error</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UserOperationLogForm</name>
@@ -3304,29 +3359,29 @@ parameters
<message>
<location filename="../components/WarningMessageWidget.cpp" line="27"/>
<source>System is working properly.</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../components/WarningMessageWidget.cpp" line="28"/>
<source>No message.</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../components/WarningMessageWidget.cpp" line="48"/>
<location filename="../components/WarningMessageWidget.cpp" line="164"/>
<source>System Status</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../components/WarningMessageWidget.cpp" line="75"/>
<location filename="../components/WarningMessageWidget.cpp" line="165"/>
<source>System Notifications</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../components/WarningMessageWidget.cpp" line="99"/>
<source>Clear</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
</context>
<context>