From b481b13a34a364aeca69d7583673d958ea94cac0 Mon Sep 17 00:00:00 2001 From: wangxuan Date: Thu, 5 Oct 2023 00:07:30 +0800 Subject: [PATCH] fix(translation): Side panel translate fix (#3156) --- .gitignore | 2 ++ platform/i18n/src/locales/zh/AboutModal.json | 1 + platform/i18n/src/locales/zh/Buttons.json | 31 ++++++++++++++----- platform/i18n/src/locales/zh/ContextMenu.json | 4 +++ platform/i18n/src/locales/zh/DatePicker.json | 1 + platform/i18n/src/locales/zh/Dialog.json | 6 ++++ .../i18n/src/locales/zh/ErrorBoundary.json | 7 +++++ platform/i18n/src/locales/zh/Local.json | 4 +++ .../i18n/src/locales/zh/MeasurementTable.json | 9 +++++- platform/i18n/src/locales/zh/Modals.json | 19 ++++++++++++ platform/i18n/src/locales/zh/Modes.json | 5 +++ .../i18n/src/locales/zh/Notification.json | 18 +++++++++++ platform/i18n/src/locales/zh/PatientInfo.json | 8 +++++ platform/i18n/src/locales/zh/SidePanel.json | 6 ++++ .../i18n/src/locales/zh/StudyBrowser.json | 6 ++++ platform/i18n/src/locales/zh/StudyList.json | 22 ++++++++++++- .../src/locales/zh/ViewportDownloadForm.json | 1 + platform/i18n/src/locales/zh/index.js | 30 ++++++++++++++++-- 18 files changed, 169 insertions(+), 11 deletions(-) create mode 100644 platform/i18n/src/locales/zh/AboutModal.json create mode 100644 platform/i18n/src/locales/zh/ContextMenu.json create mode 100644 platform/i18n/src/locales/zh/DatePicker.json create mode 100644 platform/i18n/src/locales/zh/Dialog.json create mode 100644 platform/i18n/src/locales/zh/ErrorBoundary.json create mode 100644 platform/i18n/src/locales/zh/Local.json create mode 100644 platform/i18n/src/locales/zh/Modals.json create mode 100644 platform/i18n/src/locales/zh/Modes.json create mode 100644 platform/i18n/src/locales/zh/Notification.json create mode 100644 platform/i18n/src/locales/zh/PatientInfo.json create mode 100644 platform/i18n/src/locales/zh/SidePanel.json create mode 100644 platform/i18n/src/locales/zh/StudyBrowser.json create mode 100644 platform/i18n/src/locales/zh/ViewportDownloadForm.json diff --git a/.gitignore b/.gitignore index cd3230b538d..ed3400749a7 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,5 @@ platform/app/src/pluginImports.js platform/app/.recipes/Nginx-Dcm4Che/dcm4che/dcm4che-arc/* platform/app/.recipes/OpenResty-Orthanc/logs/* .vercel + +.vs diff --git a/platform/i18n/src/locales/zh/AboutModal.json b/platform/i18n/src/locales/zh/AboutModal.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/platform/i18n/src/locales/zh/AboutModal.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/platform/i18n/src/locales/zh/Buttons.json b/platform/i18n/src/locales/zh/Buttons.json index d41174eb57e..ea57d0b3b3f 100644 --- a/platform/i18n/src/locales/zh/Buttons.json +++ b/platform/i18n/src/locales/zh/Buttons.json @@ -2,50 +2,67 @@ "Acquired": "已获取", "Angle": "角度", "Annotation": "注释", + "Arrow Annotate": "标注", "Axial": "轴状面", + "Bidirectional Tool": "双向", "Bidirectional": "双向", + "Bone": "骨窗", + "Brain": "脑窗", "Brush": "橡皮擦", - "Cine": "播放动画", - "CINE": "播放动画", "Cancel": "取消", "Capture": "下载", + "CINE": "播放动画", + "Cine": "连续播放", "Circle": "圆", "Clear": "清除", "Coronal": "冠状面", "Crosshairs": "十字线", + "Dismiss Aspect": "解除Aspect", + "Ellipse Tool": "椭圆", "Ellipse": "椭圆", "Elliptical": "椭圆的", "Flip H": "左右翻转", + "Flip Horizontal": "水平翻转", "Flip Horizontally": "左右翻转", "Flip V": "上下翻转", "Freehand": "自由画线", "Grid Layout": "窗口布局", + "Invert Colors": "灰度反转", "Invert": "灰度反转", + "Keep Aspect": "保持Aspect", "Layout": "显示窗口", + "Length Tool": "长度", "Length": "长度", "Levels": "层级", + "Liver": "肝窗", + "Lung": "肺窗", "Magnify": "放大镜", "Manual": "手动", "Measurements": "测量", - "More": "更多", - "More Tools": "更多工具", "More Measure Tools": "更多测量工具", + "More Tools": "更多工具", + "More": "更多", "Next": "下一个", "Pan": "移动", "Play": "播放", "Previous": "上一个", "Probe": "探针", - "ROI Window": "选择对比度", "Rectangle": "矩形", "Reference Lines": "参考线", - "Reset": "复原", "Reset to Defaults": "返回默认", + "Reset View": "复原", + "Reset": "复原", + "ROI Window": "选择对比度", + "Rotate +90": "顺时针旋转", "Rotate Right": "顺时针旋转", "Sagittal": "矢状面", "Save": "保存", - "Stack Scroll": "滑动切换图层", + "Soft tissue": "软组织窗", "Stack Image Sync": "影像联动", + "Stack Scroll": "滑动切换图层", "Stop": "停止", "Themes": "主题", + "W/L Presets": "窗位预设", + "Window Level": "窗位", "Zoom": "放大" } diff --git a/platform/i18n/src/locales/zh/ContextMenu.json b/platform/i18n/src/locales/zh/ContextMenu.json new file mode 100644 index 00000000000..144e5d56838 --- /dev/null +++ b/platform/i18n/src/locales/zh/ContextMenu.json @@ -0,0 +1,4 @@ +{ + "Add Label": "添加标注", + "Delete measurement": "删除测量" +} diff --git a/platform/i18n/src/locales/zh/DatePicker.json b/platform/i18n/src/locales/zh/DatePicker.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/platform/i18n/src/locales/zh/DatePicker.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/platform/i18n/src/locales/zh/Dialog.json b/platform/i18n/src/locales/zh/Dialog.json new file mode 100644 index 00000000000..7794304e52f --- /dev/null +++ b/platform/i18n/src/locales/zh/Dialog.json @@ -0,0 +1,6 @@ +{ + "Enter your annotation": "$t(Common:Enter your annotation)", + "Cancel": "$t(Common:Cancel)", + "Save": "$t(Common:Save)", + "Provide a name for your report": "输入报告名称" +} diff --git a/platform/i18n/src/locales/zh/ErrorBoundary.json b/platform/i18n/src/locales/zh/ErrorBoundary.json new file mode 100644 index 00000000000..ac9289c8c0a --- /dev/null +++ b/platform/i18n/src/locales/zh/ErrorBoundary.json @@ -0,0 +1,7 @@ +{ + "Sorry, something went wrong there. Try again.": "发生错误,请重试。", + "Context": "上下文", + "Error Message": "错误信息", + "Stack": "堆栈", + "Something went wrong": "发生错误" +} diff --git a/platform/i18n/src/locales/zh/Local.json b/platform/i18n/src/locales/zh/Local.json new file mode 100644 index 00000000000..439189b6321 --- /dev/null +++ b/platform/i18n/src/locales/zh/Local.json @@ -0,0 +1,4 @@ +{ + "Load files": "加载文件", + "Load folders": "加载文件夹" +} diff --git a/platform/i18n/src/locales/zh/MeasurementTable.json b/platform/i18n/src/locales/zh/MeasurementTable.json index d9a11da2dc1..ef6c2db7220 100644 --- a/platform/i18n/src/locales/zh/MeasurementTable.json +++ b/platform/i18n/src/locales/zh/MeasurementTable.json @@ -5,5 +5,12 @@ "MAX": "最大", "NonTargets": "非靶向", "Relabel": "重新标记", - "Targets": "靶向" + "Measurements": "测量", + "Targets": "靶向", + "Export CSV": "导出CSV", + "No tracked measurements": "没有跟踪的测量值", + "Export": "导出", + "Create Report": "新建报告", + "Do you want to add this measurement to the existing report?": "将测量添加到报告中?", + "Track measurements for this series?": "要对个序列进行跟踪吗?" } diff --git a/platform/i18n/src/locales/zh/Modals.json b/platform/i18n/src/locales/zh/Modals.json new file mode 100644 index 00000000000..c80bfae95be --- /dev/null +++ b/platform/i18n/src/locales/zh/Modals.json @@ -0,0 +1,19 @@ +{ + "Active viewport has no displayed image": "视图窗口没有图像", + "Cancel": "取消", + "Download": "下载", + "The file name cannot be empty.": "文件名称不能为空", + "File Type": "图片类型", + "File Name": "文件名", + "formTitle": "Please specify the dimensions, filename, and desired type for the output image.", + "Image height (px)": "高(px)", + "Image Preview": "预览", + "Image preview": "预览", + "Image width (px)": "宽(px)", + "keepAspectRatio": "Keep aspect ratio", + "loadingPreview": "Loading Image Preview...", + "The minimum valid height is 100px.": "图片最小高度值为100px", + "The minimum valid width is 100px.": "图片最小宽度值为100px", + "Show Annotations": "显示标注", + "Please specify the dimensions, filename, and desired type for the output image.": "请指定输出图像的尺寸、文件名和所需类型。" +} diff --git a/platform/i18n/src/locales/zh/Modes.json b/platform/i18n/src/locales/zh/Modes.json new file mode 100644 index 00000000000..9e33c9468b1 --- /dev/null +++ b/platform/i18n/src/locales/zh/Modes.json @@ -0,0 +1,5 @@ +{ + "Basic Viewer": "基础查看器", + "Total Metabolic Tumor Volume": "总代谢肿瘤体积", + "Download High Quality Image": "A" +} diff --git a/platform/i18n/src/locales/zh/Notification.json b/platform/i18n/src/locales/zh/Notification.json new file mode 100644 index 00000000000..de9c40603fc --- /dev/null +++ b/platform/i18n/src/locales/zh/Notification.json @@ -0,0 +1,18 @@ +{ + "Do you want to add this measurement to the existing report?": "添加测量值到当前报告中?", + "Create new report": "创建新报告", + "Add to existing report": "添加", + "Discard": "放弃", + "You have existing tracked measurements. What would you like to do with your existing tracked measurements?": "已经存在跟踪的测量,如何处理这些测量数据?", + "No, do not ask again for this series": "否,不再询问", + "No": "否", + "Track measurements for this series?": "对序列的测量值进行跟踪?", + "Yes": "是", + "Cancel": "取消", + "Measurements cannot span across multiple studies. Do you want to save your tracked measurements?": "测量不能跨多个检查,是否要保存跟踪的测量值?", + "No, discard previously tracked series & measurements": "否,放弃之前跟踪的序列和测量值。", + "Do you want to continue tracking measurements for this study?": "继续对该检查进行测量跟踪吗?", + "Create Report": "新建报告", + "Measurements saved successfully": "测量值保存成功", + "Failed to store measurements": "测量值保存失败" +} diff --git a/platform/i18n/src/locales/zh/PatientInfo.json b/platform/i18n/src/locales/zh/PatientInfo.json new file mode 100644 index 00000000000..6e4a57e47d0 --- /dev/null +++ b/platform/i18n/src/locales/zh/PatientInfo.json @@ -0,0 +1,8 @@ +{ + "Sex": "性别", + "Age": "年龄", + "MRN": "病例号", + "Thickness": "厚度", + "Spacing": "间距", + "Scanner": "扫描器" +} diff --git a/platform/i18n/src/locales/zh/SidePanel.json b/platform/i18n/src/locales/zh/SidePanel.json new file mode 100644 index 00000000000..11a53105a1c --- /dev/null +++ b/platform/i18n/src/locales/zh/SidePanel.json @@ -0,0 +1,6 @@ +{ + "Studies": "检查", + "Measurements": "测量", + "Measure": "测量", + "Segmentation": "分割" +} diff --git a/platform/i18n/src/locales/zh/StudyBrowser.json b/platform/i18n/src/locales/zh/StudyBrowser.json new file mode 100644 index 00000000000..a4a1e78cece --- /dev/null +++ b/platform/i18n/src/locales/zh/StudyBrowser.json @@ -0,0 +1,6 @@ +{ + "Primary": "当前", + "Recent": "最近", + "All": "全部", + "Tracked Series": "个跟踪序列" +} diff --git a/platform/i18n/src/locales/zh/StudyList.json b/platform/i18n/src/locales/zh/StudyList.json index 156b103e3b8..d7563ff5531 100644 --- a/platform/i18n/src/locales/zh/StudyList.json +++ b/platform/i18n/src/locales/zh/StudyList.json @@ -4,5 +4,25 @@ "PatientName": "患者姓名", "StudyDate": "检查日期", "StudyDescription": "描述", - "StudyList": "检查列表" + "StudyList": "检查列表", + "Patient Name": "患者姓名", + "MRN": "病例号", + "Study date": "检查日期", + "Description": "描述", + "Study list": "检查列表", + "Clear filters": "清空条件", + "Studies": "", + "Instances": "图像数", + "Accession": "检查号", + "Results per page": "每页条数", + "< Previous": "上一页", + "Next >": "下一页", + "Page": "页码", + "Start Date": "开始日期", + "Series": "序列", + "No studies available": "没有数据", + "Loading...": "加载中...", + "Select...": "选择...", + "InstitutionName": "检查机构", + "Filter list to 100 studies or less to enable sorting": "将检查列表过滤到 100 个或更少以启用排序" } diff --git a/platform/i18n/src/locales/zh/ViewportDownloadForm.json b/platform/i18n/src/locales/zh/ViewportDownloadForm.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/platform/i18n/src/locales/zh/ViewportDownloadForm.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/platform/i18n/src/locales/zh/index.js b/platform/i18n/src/locales/zh/index.js index 35a0a2f72bf..4e2517c1022 100644 --- a/platform/i18n/src/locales/zh/index.js +++ b/platform/i18n/src/locales/zh/index.js @@ -1,19 +1,45 @@ +import AboutModal from './AboutModal.json'; import Buttons from './Buttons.json'; import CineDialog from './CineDialog.json'; import Common from './Common.json'; +import DatePicker from './DatePicker.json'; import Header from './Header.json'; import MeasurementTable from './MeasurementTable.json'; import StudyList from './StudyList.json'; import UserPreferencesModal from './UserPreferencesModal.json'; +import ViewportDownloadForm from './ViewportDownloadForm.json'; +import StudyBrowser from './StudyBrowser.json'; +import SidePanel from './SidePanel.json'; +import Modes from './Modes.json'; +import PatientInfo from './PatientInfo.json'; +import Notification from './Notification.json'; +import ContextMenu from './ContextMenu.json'; +import Dialog from './Dialog.json'; +import Modals from './Modals.json'; +import Local from './Local.json'; +import ErrorBoundary from './ErrorBoundary.json'; export default { - zh: { + 'zh': { + AboutModal, Buttons, CineDialog, Common, + DatePicker, Header, MeasurementTable, StudyList, UserPreferencesModal, + ViewportDownloadForm, + StudyBrowser, + SidePanel, + Modes, + PatientInfo, + Notification, + ContextMenu, + Dialog, + Modals, + Local, + ErrorBoundary, }, -}; +}; \ No newline at end of file