From 78b0f00e8867de9e2eeed130024d375f69a1f271 Mon Sep 17 00:00:00 2001 From: r-q Date: Fri, 22 Jul 2022 22:40:24 +0800 Subject: [PATCH] chore: bind some translations according to a suggestion of @lurch --- lib/gui/app/i18n/en.ts | 6 +++--- lib/gui/app/i18n/zh-CN.ts | 6 +++--- lib/gui/app/i18n/zh-TW.ts | 6 +++--- lib/shared/messages.ts | 8 ++++++-- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/lib/gui/app/i18n/en.ts b/lib/gui/app/i18n/en.ts index d6e37eee..582b6f4b 100644 --- a/lib/gui/app/i18n/en.ts +++ b/lib/gui/app/i18n/en.ts @@ -42,10 +42,10 @@ const translation = { 'You are currently flashing a drive. Closing Etcher may leave your drive in an unusable state.', looksLikeWindowsImage: 'It looks like you are trying to burn a Windows image.\n\nUnlike other images, Windows images require special processing to be made bootable. We suggest you use a tool specially designed for this purpose, such as Rufus (Windows), WoeUSB (Linux), or Boot Camp Assistant (macOS).', + image: 'image', + drive: 'drive', missingPartitionTable: - 'It looks like this is not a bootable image.\n\nThe image does not appear to contain a partition table, and might not be recognized or bootable by your device.', - driveMissingPartitionTable: - 'It looks like this is not a bootable drive.\nThe drive does not appear to contain a partition table,\nand might not be recognized or bootable by your device.', + 'It looks like this is not a bootable {{type}}.\n\nThe {{type}} does not appear to contain a partition table, and might not be recognized or bootable by your device.', largeDriveSize: "This is a large drive! Make sure it doesn't contain files that you want to keep.", systemDrive: diff --git a/lib/gui/app/i18n/zh-CN.ts b/lib/gui/app/i18n/zh-CN.ts index f458653a..621be1fe 100644 --- a/lib/gui/app/i18n/zh-CN.ts +++ b/lib/gui/app/i18n/zh-CN.ts @@ -42,10 +42,10 @@ const translation = { '您当前正在刷机。 关闭 Etcher 可能会导致您的磁盘无法使用。', looksLikeWindowsImage: '看起来您正在尝试刻录 Windows 镜像。\n\n与其他镜像不同,Windows 镜像需要特殊处理才能使其可启动。 我们建议您使用专门为此目的设计的工具,例如 Rufus (Windows)、WoeUSB (Linux) 或 Boot Camp 助理 (macOS)。', + image: '镜像', + drive: '磁盘', missingPartitionTable: - '看起来这不是一个可启动的镜像。\n\n这个镜像似乎不包含分区表,因此您的设备可能无法识别或无法正确启动。', - driveMissingPartitionTable: - '看起来这不是可引导磁盘。\n这个磁盘似乎不包含分区表,\n因此您的设备可能无法识别或无法正确启动。', + '看起来这不是一个可启动的{{type}}。\n\n这个{{type}}似乎不包含分区表,因此您的设备可能无法识别或无法正确启动。', largeDriveSize: '这是个很大的磁盘!请检查并确认它不包含对您很重要的信息', systemDrive: '选择系统盘很危险,因为这将会删除你的系统', sourceDrive: '源镜像位于这个分区中', diff --git a/lib/gui/app/i18n/zh-TW.ts b/lib/gui/app/i18n/zh-TW.ts index f9957e20..9ddfe0e5 100644 --- a/lib/gui/app/i18n/zh-TW.ts +++ b/lib/gui/app/i18n/zh-TW.ts @@ -42,10 +42,10 @@ const translation = { '您當前正在刷機。 關閉 Etcher 可能會導致您的磁盤無法使用。', looksLikeWindowsImage: '看起來您正在嘗試刻錄 Windows 鏡像。\n\n與其他鏡像不同,Windows 鏡像需要特殊處理才能使其可啓動。 我們建議您使用專門爲此目的設計的工具,例如 Rufus (Windows)、WoeUSB (Linux) 或 Boot Camp 助理 (macOS)。', + image: '鏡像', + drive: '磁盤', missingPartitionTable: - '看起來這不是一個可啓動的鏡像。\n\n這個鏡像似乎不包含分區表,因此您的設備可能無法識別或無法正確啓動。', - driveMissingPartitionTable: - '看起來這不是可引導磁盤。\n這個磁盤似乎不包含分區表,\n因此您的設備可能無法識別或無法正確啓動。', + '看起來這不是一個可啓動的{{type}}。\n\n這個{{type}}似乎不包含分區表,因此您的設備可能無法識別或無法正確啓動。', largeDriveSize: '這是個很大的磁盤!請檢查並確認它不包含對您很重要的信息', systemDrive: '選擇系統盤很危險,因爲這將會刪除你的系統', sourceDrive: '源鏡像位於這個分區中', diff --git a/lib/shared/messages.ts b/lib/shared/messages.ts index 090b8836..e9bf9609 100644 --- a/lib/shared/messages.ts +++ b/lib/shared/messages.ts @@ -111,11 +111,15 @@ export const warning = { }, missingPartitionTable: () => { - return i18next.t('message.missingPartitionTable'); + return i18next.t('message.missingPartitionTable', { + type: i18next.t('message.image'), + }); }, driveMissingPartitionTable: () => { - return i18next.t('message.driveMissingPartitionTable'); + return i18next.t('message.missingPartitionTable', { + type: i18next.t('message.drive'), + }); }, largeDriveSize: () => {