From d033bd5995dff5fed2c435487dbf3c1819f8a29f Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Wed, 31 Jul 2019 10:02:17 +0200 Subject: [PATCH] @ohif/i18n - Add Vietnamese translation (Thanks @lam0620!) - Improve Chinese translations (Thanks @MarlonLiu1991!) (0.2.4) --- extensions/ohif-i18n/package.json | 2 +- extensions/ohif-i18n/src/locales/index.js | 2 + .../ohif-i18n/src/locales/vi/Buttons.json | 42 +++++++++++++++++ .../ohif-i18n/src/locales/vi/CineDialog.json | 8 ++++ .../ohif-i18n/src/locales/vi/Common.json | 15 +++++++ .../ohif-i18n/src/locales/vi/Header.json | 8 ++++ .../ohif-i18n/src/locales/vi/StudyList.json | 10 +++++ .../src/locales/vi/UserPreferencesModal.json | 6 +++ extensions/ohif-i18n/src/locales/vi/index.js | 17 +++++++ .../ohif-i18n/src/locales/zh/Buttons.json | 45 +++++++++++++++---- .../ohif-i18n/src/locales/zh/CineDialog.json | 8 ++++ .../ohif-i18n/src/locales/zh/Common.json | 9 +++- .../ohif-i18n/src/locales/zh/Header.json | 7 ++- .../src/locales/zh/UserPreferencesModal.json | 6 +++ extensions/ohif-i18n/src/locales/zh/index.js | 4 ++ 15 files changed, 178 insertions(+), 11 deletions(-) create mode 100644 extensions/ohif-i18n/src/locales/vi/Buttons.json create mode 100644 extensions/ohif-i18n/src/locales/vi/CineDialog.json create mode 100644 extensions/ohif-i18n/src/locales/vi/Common.json create mode 100644 extensions/ohif-i18n/src/locales/vi/Header.json create mode 100644 extensions/ohif-i18n/src/locales/vi/StudyList.json create mode 100644 extensions/ohif-i18n/src/locales/vi/UserPreferencesModal.json create mode 100644 extensions/ohif-i18n/src/locales/vi/index.js create mode 100644 extensions/ohif-i18n/src/locales/zh/CineDialog.json create mode 100644 extensions/ohif-i18n/src/locales/zh/UserPreferencesModal.json diff --git a/extensions/ohif-i18n/package.json b/extensions/ohif-i18n/package.json index d308c63b3..ebfe2ba0f 100644 --- a/extensions/ohif-i18n/package.json +++ b/extensions/ohif-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@ohif/i18n", - "version": "0.2.3", + "version": "0.2.4", "description": "OHIF extension for internationalization", "author": "OHIF", "license": "MIT", diff --git a/extensions/ohif-i18n/src/locales/index.js b/extensions/ohif-i18n/src/locales/index.js index 909f053b8..a82f94ec7 100644 --- a/extensions/ohif-i18n/src/locales/index.js +++ b/extensions/ohif-i18n/src/locales/index.js @@ -2,6 +2,7 @@ import en_US from './en-US/'; import es from './es/'; import nl from './nl/'; import pt_BR from './pt-BR/'; +import vi from './vi/'; import zh from './zh/'; export default { @@ -9,5 +10,6 @@ export default { ...es, ...nl, ...pt_BR, + ...vi, ...zh, }; \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/vi/Buttons.json b/extensions/ohif-i18n/src/locales/vi/Buttons.json new file mode 100644 index 000000000..1d3f15b8c --- /dev/null +++ b/extensions/ohif-i18n/src/locales/vi/Buttons.json @@ -0,0 +1,42 @@ +{ + "Acquired": "Đã lấy", + "Angle": "Góc", + "Axial": "Trục", + "Bidirectional": "Hai hướng", + "Brush": "Bút lông", + "CINE": "Duyệt tự động", + "Cancel": "Hủy bỏ", + "Circle": "Vòng tròn", + "Clear": "Xóa", + "Coronal": "Mặt phẳng vành", + "Crosshairs": "Vị trí tương quan", + "Ellipse": "Đo Elip", + "Elliptical": "Elip", + "Flip H": "Lật ngang", + "Flip V": "Lật dọc", + "Freehand": "Bằng tay", + "Invert": "Ảnh dương bản", + "Layout": "$t(Common:Layout)", + "Length": "Thước đo chiều dài", + "Levels": "Độ sáng", + "Magnify": "Phóng đại một phần", + "Manual": "Thủ công", + "Measurements": "Đo lường", + "More": "$t(Common:More)", + "Next": "$t(Common:Next)", + "Pan": "Di chuyển", + "Play": "$t(Common:Play)", + "Previous": "$t(Common:Previous)", + "Probe": "Thông tin điểm ảnh", + "ROI Window": "ROI Window", + "Rectangle": "Đo chữ nhật", + "Reset": "$t(Common:Reset)", + "Reset to Defaults": "$t(Common:Reset) đến mặc định", + "Rotate Right": "Xoay phải", + "Sagittal": "Mặt phẳng đứng dọc", + "Save": "Lưu", + "Stack Scroll": "Duyệt", + "Stop": "$t(Common:Stop)", + "Themes": "Giao diện", + "Zoom": "Thu phóng" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/vi/CineDialog.json b/extensions/ohif-i18n/src/locales/vi/CineDialog.json new file mode 100644 index 000000000..b21951151 --- /dev/null +++ b/extensions/ohif-i18n/src/locales/vi/CineDialog.json @@ -0,0 +1,8 @@ +{ + "Next image": "$t(Common:Play) $t(Common:Image)", + "Play / Stop": "$t(Common:Play) / $t(Common:Stop)", + "Previous image": "$t(Common:Previous) $t(Common:Image)", + "Skip to first image": "Bỏ qua đến đầu $t(Common:Image)", + "Skip to last image": "Bỏ qua đến cuối $t(Common:Image)", + "fps": "fps" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/vi/Common.json b/extensions/ohif-i18n/src/locales/vi/Common.json new file mode 100644 index 000000000..15f6d3dfe --- /dev/null +++ b/extensions/ohif-i18n/src/locales/vi/Common.json @@ -0,0 +1,15 @@ +{ + "Image": "Ảnh", + "Layout": "Cách bố trí", + "Measurements": "Đo lường", + "More": "Thêm", + "Next": "Tiếp theo", + "Play": "Phát", + "Previous": "Về sau", + "Reset": "Đặt lại", + "RowsPerPage": "trên 1 trang", + "Series": "Tập ảnh", + "Show": "Hiển thị", + "Stop": "Dừng", + "StudyDate": "Ngày chụp" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/vi/Header.json b/extensions/ohif-i18n/src/locales/vi/Header.json new file mode 100644 index 000000000..6d28ae1c9 --- /dev/null +++ b/extensions/ohif-i18n/src/locales/vi/Header.json @@ -0,0 +1,8 @@ +{ + "About": "Về chúng tôi", + "Back to Viewer": "Ảnh vừa xem", + "INVESTIGATIONAL USE ONLY": "Chỉ dùng cho nghiên cứu", + "Options": "Lựa chọn", + "Preferences": "Thiết lập", + "Study list": "Danh sách" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/vi/StudyList.json b/extensions/ohif-i18n/src/locales/vi/StudyList.json new file mode 100644 index 000000000..a818f9598 --- /dev/null +++ b/extensions/ohif-i18n/src/locales/vi/StudyList.json @@ -0,0 +1,10 @@ +{ + "AccessionNumber": "Mã phiểu", + "Empty": "Rỗng", + "MRN": "Mã Bệnh nhân", + "Modality": "Thiết bị", + "PatientName": "Tên Bệnh nhân", + "StudyDate": "Ngày chụp", + "StudyDescription": "Diễn giải", + "StudyList": "Danh sách" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/vi/UserPreferencesModal.json b/extensions/ohif-i18n/src/locales/vi/UserPreferencesModal.json new file mode 100644 index 000000000..087801611 --- /dev/null +++ b/extensions/ohif-i18n/src/locales/vi/UserPreferencesModal.json @@ -0,0 +1,6 @@ +{ + "Cancel": "$t(Buttons:Cancel)", + "Reset to Defaults": "$t(Buttons:Reset to Defaults)", + "Save": "$t(Buttons:Save)", + "User Preferences": "Thiết lập theo người dùng" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/vi/index.js b/extensions/ohif-i18n/src/locales/vi/index.js new file mode 100644 index 000000000..1c1a890c3 --- /dev/null +++ b/extensions/ohif-i18n/src/locales/vi/index.js @@ -0,0 +1,17 @@ +import Buttons from "./Buttons.json"; +import CineDialog from "./CineDialog.json"; +import Common from "./Common.json"; +import Header from "./Header.json"; +import StudyList from "./StudyList.json"; +import UserPreferencesModal from "./UserPreferencesModal.json"; + +export default { + 'vi': { + Buttons, + CineDialog, + Common, + Header, + StudyList, + UserPreferencesModal, + } +}; \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/zh/Buttons.json b/extensions/ohif-i18n/src/locales/zh/Buttons.json index 7f5ae3b26..38efe7d08 100644 --- a/extensions/ohif-i18n/src/locales/zh/Buttons.json +++ b/extensions/ohif-i18n/src/locales/zh/Buttons.json @@ -1,13 +1,42 @@ { - "Angle": "线角测量", - "CINE": "播放", - "Length": "长度测量", - "Levels": "窗宽/窗位", + "Acquired": "已获取", + "Angle": "角度", + "Axial": "轴状面", + "Bidirectional": "双向", + "Brush": "橡皮擦", + "CINE": "播放动画", + "Cancel": "取消", + "Circle": "圆", + "Clear": "清除", + "Coronal": "冠状面", + "Crosshairs": "十字线", + "Ellipse": "椭圆", + "Elliptical": "椭圆的", + "Flip H": "左右翻转", + "Flip V": "上下翻转", + "Freehand": "自由画线", + "Invert": "灰度反转", + "Layout": "显示窗口", + "Length": "长度", + "Levels": "层级", + "Magnify": "放大镜", + "Manual": "手动", "Measurements": "测量", "More": "更多", - "Pan": "平移", + "Next": "下一个", + "Pan": "移动", "Play": "播放", - "Reset": "重置", - "Rotate Right": "顺时针", - "Zoom": "缩放" + "Previous": "上一个", + "Probe": "探针", + "ROI Window": "选择对比度", + "Rectangle": "矩形", + "Reset": "复原", + "Reset to Defaults": "返回默认", + "Rotate Right": "顺时针旋转", + "Sagittal": "矢状面", + "Save": "保存", + "Stack Scroll": "滑动切换图层", + "Stop": "停止", + "Themes": "主题", + "Zoom": "放大" } \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/zh/CineDialog.json b/extensions/ohif-i18n/src/locales/zh/CineDialog.json new file mode 100644 index 000000000..e40ae5b59 --- /dev/null +++ b/extensions/ohif-i18n/src/locales/zh/CineDialog.json @@ -0,0 +1,8 @@ +{ + "Next image": "下一个图像", + "Play / Stop": "播放/停止", + "Previous image": "上一个图像", + "Skip to first image": "跳转到第一个图像", + "Skip to last image": "跳转到最后一个图像", + "fps": "帧率" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/zh/Common.json b/extensions/ohif-i18n/src/locales/zh/Common.json index f87145a5b..6119ed2d9 100644 --- a/extensions/ohif-i18n/src/locales/zh/Common.json +++ b/extensions/ohif-i18n/src/locales/zh/Common.json @@ -1,3 +1,10 @@ { - "Play": "播放" + "Image": "图像", + "Layout": "显示窗口", + "More": "更多", + "Next": "下一个", + "Play": "播放", + "Previous": "上一个", + "Reset": "复原", + "Stop": "停止" } \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/zh/Header.json b/extensions/ohif-i18n/src/locales/zh/Header.json index 5b82a525a..5f64c3a18 100644 --- a/extensions/ohif-i18n/src/locales/zh/Header.json +++ b/extensions/ohif-i18n/src/locales/zh/Header.json @@ -1,3 +1,8 @@ { - "Study list": "检查" + "About": "关于", + "Back to Viewer": "返回视图", + "INVESTIGATIONAL USE ONLY": "研究用途", + "Options": "选项", + "Preferences": "偏好", + "Study list": "研究列表" } \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/zh/UserPreferencesModal.json b/extensions/ohif-i18n/src/locales/zh/UserPreferencesModal.json new file mode 100644 index 000000000..865b7e333 --- /dev/null +++ b/extensions/ohif-i18n/src/locales/zh/UserPreferencesModal.json @@ -0,0 +1,6 @@ +{ + "Cancel": "取消", + "Reset to Defaults": "返回默认", + "Save": "保存", + "User Preferences": "用户偏好" +} \ No newline at end of file diff --git a/extensions/ohif-i18n/src/locales/zh/index.js b/extensions/ohif-i18n/src/locales/zh/index.js index e336fde3f..a008e5a7a 100644 --- a/extensions/ohif-i18n/src/locales/zh/index.js +++ b/extensions/ohif-i18n/src/locales/zh/index.js @@ -1,11 +1,15 @@ import Buttons from "./Buttons.json"; +import CineDialog from "./CineDialog.json"; import Common from "./Common.json"; import Header from "./Header.json"; +import UserPreferencesModal from "./UserPreferencesModal.json"; export default { 'zh': { Buttons, + CineDialog, Common, Header, + UserPreferencesModal, } }; \ No newline at end of file