Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(translation): Side panel translate fix #3156

Merged
merged 9 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions platform/i18n/src/locales/zh/AboutModal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
31 changes: 24 additions & 7 deletions platform/i18n/src/locales/zh/Buttons.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "放大"
}
4 changes: 4 additions & 0 deletions platform/i18n/src/locales/zh/ContextMenu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"Add Label": "添加标注",
"Delete measurement": "删除测量"
}
1 change: 1 addition & 0 deletions platform/i18n/src/locales/zh/DatePicker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 6 additions & 0 deletions platform/i18n/src/locales/zh/Dialog.json
Original file line number Diff line number Diff line change
@@ -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": "输入报告名称"
}
7 changes: 7 additions & 0 deletions platform/i18n/src/locales/zh/ErrorBoundary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Sorry, something went wrong there. Try again.": "发生错误,请重试。",
"Context": "上下文",
"Error Message": "错误信息",
"Stack": "堆栈",
"Something went wrong": "发生错误"
}
4 changes: 4 additions & 0 deletions platform/i18n/src/locales/zh/Local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"Load files": "加载文件",
"Load folders": "加载文件夹"
}
9 changes: 8 additions & 1 deletion platform/i18n/src/locales/zh/MeasurementTable.json
Original file line number Diff line number Diff line change
Expand Up @@ -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?": "要对个序列进行跟踪吗?"
}
19 changes: 19 additions & 0 deletions platform/i18n/src/locales/zh/Modals.json
Original file line number Diff line number Diff line change
@@ -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.": "请指定输出图像的尺寸、文件名和所需类型。"
}
5 changes: 5 additions & 0 deletions platform/i18n/src/locales/zh/Modes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Basic Viewer": "基础查看器",
"Total Metabolic Tumor Volume": "总代谢肿瘤体积",
"Download High Quality Image": "A"
}
18 changes: 18 additions & 0 deletions platform/i18n/src/locales/zh/Notification.json
Original file line number Diff line number Diff line change
@@ -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": "测量值保存失败"
}
8 changes: 8 additions & 0 deletions platform/i18n/src/locales/zh/PatientInfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Sex": "性别",
"Age": "年龄",
"MRN": "病例号",
"Thickness": "厚度",
"Spacing": "间距",
"Scanner": "扫描器"
}
6 changes: 6 additions & 0 deletions platform/i18n/src/locales/zh/SidePanel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"Studies": "检查",
"Measurements": "测量",
"Measure": "测量",
"Segmentation": "分割"
}
6 changes: 6 additions & 0 deletions platform/i18n/src/locales/zh/StudyBrowser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"Primary": "当前",
"Recent": "最近",
"All": "全部",
"Tracked Series": "个跟踪序列"
}
22 changes: 21 additions & 1 deletion platform/i18n/src/locales/zh/StudyList.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 个或更少以启用排序"
}
1 change: 1 addition & 0 deletions platform/i18n/src/locales/zh/ViewportDownloadForm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
30 changes: 28 additions & 2 deletions platform/i18n/src/locales/zh/index.js
Original file line number Diff line number Diff line change
@@ -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,
},
};
};