From 260606fdf0ea7f84f867d7e052f9b38247757aa6 Mon Sep 17 00:00:00 2001 From: sunwen Date: Thu, 5 Jun 2025 15:43:12 +0800 Subject: [PATCH] feat: Add some translate text. --- src/device/UsctStateManager.cpp | 22 ++++---- src/translations/en_US.ts | 44 +++++++++++++++ src/translations/zh_CN.ts | 97 ++++++++++++++++++++++++++------- 3 files changed, 131 insertions(+), 32 deletions(-) diff --git a/src/device/UsctStateManager.cpp b/src/device/UsctStateManager.cpp index 80f187a..e4dd9e5 100644 --- a/src/device/UsctStateManager.cpp +++ b/src/device/UsctStateManager.cpp @@ -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"); } } diff --git a/src/translations/en_US.ts b/src/translations/en_US.ts index fe0bcdc..abb07d9 100644 --- a/src/translations/en_US.ts +++ b/src/translations/en_US.ts @@ -2103,6 +2103,50 @@ The emergency button has been pushed. Please reset it before other operations.Recon DB error. + + Dms Init Error + + + + Dms Connection Error + + + + Recon Fatal Error + + + + Recon Mpps Connection Error + + + + Recon Pacs Node1 Connection Error + + + + Recon Pacs Node2 Connection Error + + + + Recon Pacs Node3 Connection Error + + + + Recon Empty Scan Data Error + + + + Recon Database Connection Error + + + + Recon Connection Error + + + + Unknow Error + + UserOperationLogForm diff --git a/src/translations/zh_CN.ts b/src/translations/zh_CN.ts index 0ea9b9c..3879edb 100644 --- a/src/translations/zh_CN.ts +++ b/src/translations/zh_CN.ts @@ -498,7 +498,7 @@ Patient can leave. progress:%1% - 检查对象可以起身 + 患者可以起身 进度:%1% @@ -1105,7 +1105,7 @@ After lying down, click the confirm buttonto start scanning on the next side. No reference record find! - 无该检查对象信息 + 无该相关信息 @@ -1391,7 +1391,7 @@ After lying down, click the confirm buttonto start scanning on the next side. Clear - + 清空 @@ -1469,12 +1469,12 @@ After lying down, click the confirm buttonto start scanning on the next side. New password:%1 - + 新密码:%1 Reset success - + 重置成功 @@ -1529,7 +1529,7 @@ After lying down, click the confirm buttonto start scanning on the next side. System mode Notice - + 系统模式提醒 @@ -1561,7 +1561,7 @@ After lying down, click the confirm buttonto start scanning on the next side. MPPS initNetwork failed! - + MPPS网络初始化失败 @@ -1571,12 +1571,12 @@ After lying down, click the confirm buttonto start scanning on the next side. MPPS context error! - + MPPS发送失败 MPPS fail by error: - + MPPS失败: @@ -1584,12 +1584,12 @@ After lying down, click the confirm buttonto start scanning on the next side. Create MPPSUID error! - + 创建MPPSUID失败 Update MPPSUID success! - + MPPSUID更新成功 @@ -2061,7 +2061,7 @@ After lying down, click the confirm buttonto start scanning on the next side. Current Patient - 当前患者信息 + 当前检查对象信息 @@ -2251,7 +2251,7 @@ The emergency button has been pushed. Please reset it before other operations. Patient ID - 检查对象ID + 患者编码 @@ -2263,7 +2263,7 @@ The emergency button has been pushed. Please reset it before other operations. Patient Name - 检查对象姓名 + 患者姓名 @@ -2730,12 +2730,12 @@ parameters Patient ID - 检查对象ID + 患者编码 Patient Name - 检查对象姓名 + 患者姓名 @@ -3255,6 +3255,61 @@ parameters Recon DB error. 重建服务器数据库错误 + + + Dms Init Error + DMS初始化错误 + + + + Dms Connection Error + DMS失去连接 + + + + Recon Fatal Error + 重建致命错误 + + + + Recon Mpps Connection Error + MPPS连接失败 + + + + Recon Pacs Node1 Connection Error + PACS节点1连接失败 + + + + Recon Pacs Node2 Connection Error + PACS节点2连接失败 + + + + Recon Pacs Node3 Connection Error + PACS节点3连接失败 + + + + Recon Empty Scan Data Error + 重建服务器空水数据缺失 + + + + Recon Database Connection Error + 重建服务器数据库错误 + + + + Recon Connection Error + 重建服务器连接失败 + + + + Unknow Error + 未知错误 + UserOperationLogForm @@ -3304,29 +3359,29 @@ parameters System is working properly. - + 系统工作正常 No message. - + 无信息 System Status - + 系统状态 System Notifications - + 系统通知 Clear - + 清空