diff --git a/src/forms/recon/ReconFormWidget.cpp b/src/forms/recon/ReconFormWidget.cpp index 2cc0907..05dce53 100644 --- a/src/forms/recon/ReconFormWidget.cpp +++ b/src/forms/recon/ReconFormWidget.cpp @@ -56,6 +56,7 @@ ReconFormWidget::ReconFormWidget(QWidget *parent) connect(mSearchWidget, &ScanSearchCriteriaForm::refreshData, DeviceManager::Default(), &DeviceManager::updateReconState); connect(mRefreshTimer, &QTimer::timeout, this, &ReconFormWidget::refreshTransferprogress); connect(EventCenter::Default(), &EventCenter::AnonymousModeChanged, this, &ReconFormWidget::updateSearchFilter); + connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this, &ReconFormWidget::reloadLanguage); } void ReconFormWidget::initTableView(QHBoxLayout *contentLayout) @@ -145,3 +146,13 @@ void ReconFormWidget::refreshTransferprogress() } } +void ReconFormWidget::reloadLanguage() +{ + mModel->setHeaderData(getTableColumnIndex("PatientID"), Qt::Horizontal, tr("Patient ID")); + mModel->setHeaderData(getTableColumnIndex("AccessionNumber"), Qt::Horizontal, tr("Accession Number")); + mModel->setHeaderData(getTableColumnIndex("PatientName"), Qt::Horizontal, tr("Patient Name")); + mModel->setHeaderData(getTableColumnIndex("ScanDateTime"), Qt::Horizontal, tr("Scan Time")); + mModel->setHeaderData(getTableColumnIndex("Laterality"), Qt::Horizontal, tr("Laterality")); + mModel->setHeaderData(getTableColumnIndex("OperatorName"), Qt::Horizontal, tr("Operator Name")); + mModel->setHeaderData(getTableColumnIndex("State"), Qt::Horizontal, tr("State")); +} diff --git a/src/forms/recon/ReconFormWidget.h b/src/forms/recon/ReconFormWidget.h index 2ac7caf..ed22f42 100644 --- a/src/forms/recon/ReconFormWidget.h +++ b/src/forms/recon/ReconFormWidget.h @@ -25,6 +25,7 @@ protected: private slots: void updateSearchFilter(); void refreshTransferprogress(); + void reloadLanguage(); private: int getTableColumnIndex(const QString& aColumnName); diff --git a/src/forms/scan/ScanFormWidget.cpp b/src/forms/scan/ScanFormWidget.cpp index 31c2019..32cd274 100644 --- a/src/forms/scan/ScanFormWidget.cpp +++ b/src/forms/scan/ScanFormWidget.cpp @@ -426,6 +426,7 @@ void ScanFormWidget::reloadLanguage() mShutdownButton->setText(tr("ShutDown")); mWorklistButton->setText(tr("Worklist")); mStartScanButton->setText(tr("Start Scan")); + mScanProcessLabel->setText(tr("Please confirm checking patient information to start the process")); mDrainageButton->isChecked() ? mDrainageButton->setText(tr("Drainaging")) : mDrainageButton->setText(tr("Drainage")); } diff --git a/src/forms/select/SelectFormWidget.cpp b/src/forms/select/SelectFormWidget.cpp index 35326c1..8bcd526 100644 --- a/src/forms/select/SelectFormWidget.cpp +++ b/src/forms/select/SelectFormWidget.cpp @@ -31,6 +31,7 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) , mPatTable(new SlideTableView(this)) , mModel(nullptr) , patientDetailForm(new PatientDetailForm(this)) +, mSelectTabTitle(new QLabel(this)) { //process expired patient list QDate date = QDate::currentDate().addDays(-JsonObject::Instance()->getPatientListExpireDays()); @@ -46,9 +47,9 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) //Init content widget auto contantContanerLayout = new QVBoxLayout(this->ui->contentWidget); contantContanerLayout->setMargin(0); - auto selectTabTitle = new QLabel(tr("Patient Information Manage")); - selectTabTitle->setObjectName("selectTabTitle"); - contantContanerLayout->addWidget(selectTabTitle); + mSelectTabTitle->setText(tr("Patient Information Manage")); + mSelectTabTitle->setObjectName("selectTabTitle"); + contantContanerLayout->addWidget(mSelectTabTitle); auto contentLayout = new QHBoxLayout; contantContanerLayout->addLayout(contentLayout); contentLayout->setContentsMargins(0, 0, 0, 0); @@ -302,6 +303,7 @@ void SelectFormWidget::reloadLanguage(){ mBtnDelete->setText(tr("Delete")); mBtnAdd->setText(tr("Add")); mBtnSelect->setText(tr("Select")); + mSelectTabTitle->setText(tr("Patient Information Manage")); } void SelectFormWidget::updateDataByAnonymousMode(){ diff --git a/src/forms/select/SelectFormWidget.h b/src/forms/select/SelectFormWidget.h index f1a7439..6a44aad 100644 --- a/src/forms/select/SelectFormWidget.h +++ b/src/forms/select/SelectFormWidget.h @@ -32,6 +32,7 @@ private: SlideTableView *mPatTable; QSqlTableModel *mModel; PatientDetailForm *patientDetailForm; + QLabel* mSelectTabTitle; void prepareButtons(bool disableALL); diff --git a/src/forms/settings/GeneralForm.cpp b/src/forms/settings/GeneralForm.cpp index 0d29b87..4c801ec 100644 --- a/src/forms/settings/GeneralForm.cpp +++ b/src/forms/settings/GeneralForm.cpp @@ -211,6 +211,7 @@ GeneralForm::GeneralForm(QWidget* aParent) diskLabel->setText(tr("Disk Storage")); anonyButton->setChecked(JsonObject::Instance()->getAnonymousMode()); scanProtocolButton->setText(GetProtocalHelper::getProtocalStr()); + lockTime->setText(GetLockScreenTimeHelper::getLockScreenTimeStr()); updateStorageSize(); updateStorageUsed(); }); diff --git a/src/translations/zh_CN.ts b/src/translations/zh_CN.ts index 594aaaf..d696ec9 100644 --- a/src/translations/zh_CN.ts +++ b/src/translations/zh_CN.ts @@ -97,53 +97,53 @@ AccountFormDialog - + Account 账户 - + User ID 用户ID - + Input User ID 输入用户ID - + Name 姓名 - + Reset to default password? 重置为默认密码? - + Input User name 输入用户名 - + Do you want to logout the current user? 是否确定要退出当前用户? - + Password 密码 - + Change Password 修改密码 - - + + Input password 输入密码 @@ -156,13 +156,13 @@ 重置密码 - + Reset Password 密码重置 - - + + Logout 登出 @@ -175,65 +175,65 @@ 医生 - + Inner error, can't find reference user! 内部错误! - - + + Submit change to database fail! 修改提交至数据库失败! - + Comment 备注 - + Confirm Password 确认密码 - - - + + + User Name can't be empty! 用户名不能为空! - + User ID can't be empty! 用户ID不能为空! - + Password can't be empty! 密码不能为空! - + Password should at least 6 characters! 密码至少6位字符! - + Password and confirm password do not match! 密码和确认密码不一致 - + Inner error ,unset data model! 内部错误! - + User Id exists! 用户ID已存在! - + Submit to data base fail! 提交至数据库失败! @@ -351,7 +351,7 @@ AlertDialog - + Warning 警告 @@ -409,33 +409,33 @@ Date exceeded! - + 日期不合法! DeviceManager - - + + DMS connection error DMS失去连接 - + progress:%1% 进度:%1% - + Patient can leave. progress:%1% 检查对象可以起身 进度:%1% - + Data quality assessment in progress progress:99% 数据质量判断中 @@ -443,8 +443,8 @@ progress:99% - + Initialize Failed. 初始化失败 @@ -464,86 +464,86 @@ progress:99% 设备状态错误,无法开始空水扫查 - + Scan completed! 扫查结束 - + Error: 错误: - + Start scan failed. Reason:time out. 扫查启动失败,原因:超时 - + Start scan failed. Reason:%1 扫查启动失败,原因:%1 - + Start CE Scan Failed. CE扫查启动失败 - + Data is currently being transmitted, please shut down later. 数据传输中,请稍后再执行关机。 - + Shut down failed, please push emergency button to shutdown. 关机失败,请按紧急按钮进行关机。 - - - + + + Scan data transfer failed. 扫查数据上传失败 - + Scan data transfer Succeeded! - + Create empty scan data failed 空水数据新增失败 - + Create scan data failed 扫查数据新增失败 - + Recon disconnected. 重建服务器已断开连接 - - + + Open pump failed. 排水阀打开失败 - + Recon error, can't start scan process 重建服务器错误,无法开始检查流程 - - + + Start auto locate failed 自动化定位启动失败 - + The data quality is low, please restart the data scan. 扫查数据质量较低,请重新开始检查流程 @@ -654,7 +654,7 @@ progress:99% Edit Patient - + 编辑检查对象 @@ -695,7 +695,7 @@ progress:99% Other - + 其他 @@ -838,22 +838,22 @@ progress:99% 中文 - + Used: %1G - + Total: %1G - + Get disk used size fail! 磁盘使用空间获取失败! - + Get disk total size fail! 磁盘总空间获取失败! @@ -1405,7 +1405,7 @@ progress:99% - + Warning 警告 @@ -1420,7 +1420,7 @@ progress:99% 关机失败,请按紧急按钮进行关机。 - + Due to empty scan data corruption on the server, needs to be execute the empty scan. No other operations can be conducted until the scan is complete. 服务器端空水数据损坏,需要进行空水扫查,空水扫查结束前无法进行其他操作。 @@ -1845,7 +1845,6 @@ progress:99% - LeftToRight 左->右 @@ -1863,6 +1862,7 @@ progress:99% + Right 单侧右 @@ -1878,37 +1878,44 @@ progress:99% 刷新 - + + Patient ID 检查对象ID - + + Accession Number 检查单号 - + + Patient Name 检查对象姓名 - + + Operator Name 操作员 - + + Scan Time 检查时间 - + + Laterality 检查位置 - + + State 重建状态 @@ -2051,7 +2058,7 @@ progress:99% - + Drainage 排水 @@ -2093,7 +2100,7 @@ progress:99% - + Drainaging 排水中 @@ -2110,6 +2117,7 @@ progress:99% + Please confirm checking patient information to start the process 请确定检查对象信息开始流程 @@ -2124,12 +2132,12 @@ progress:99% 数据导出中,检查对象可以离开检查仓 - + Left side scan initiated, auto positioning in progress. 左侧扫查启动,自动定位中 - + Right side scan initiated, auto positioning in progress. 右侧扫查启动,自动定位中 @@ -2253,98 +2261,99 @@ parameters 新增(拉取) - - + + Add 新增 - - + + Edit 编辑 - + + Patient Information Manage 检查对象信息录入 - - + + Delete 删除 - - + + Select 选择 - + Can't delete selected Patient ! 不能删除已经被选择的对象 - - + + Alert - + Delete Patient "%1" ? 删除检查对象"%1"? - + Confirm 确认 - + Can't delete selected Patient , db submit error! - + ID 检查对象ID - - + + AccessionNumber 检查单号 - - + + Name 姓名 - - + + Birth Date 出生日期 - - + + Gender 性别 - - + + Add Date 添加日期 - - + + Comment 备注 @@ -2666,32 +2675,32 @@ parameters UserOperationLogForm - - + + Log Date: 日志时间 - - + + Operation Date 操作日期 - - + + Operation Time 操作时间 - - + + User 用户 - - + + Operation 操作内容 diff --git a/src/windows/MainWindow.cpp b/src/windows/MainWindow.cpp index 39bf170..86e6688 100644 --- a/src/windows/MainWindow.cpp +++ b/src/windows/MainWindow.cpp @@ -344,6 +344,7 @@ void MainWindow::requestLogin() { DialogManager::Default()->requestLogin(this); QApplication::setActiveWindow(centralWidget()); + resetRoleLayout(); } void MainWindow::requestScreenSaver()