Skip to content

A full-featured download manager.

chore: i18n task detail

Dr_rOot482b9312b185
diff --git a/src/shared/locales/en-US/task.js b/src/shared/locales/en-US/task.js
index edb2405f..05dc3937 100644
--- a/src/shared/locales/en-US/task.js
+++ b/src/shared/locales/en-US/task.js
@@ -11,9 +11,10 @@ export default {
'thunder-link-tips': 'Tip: Thunder links may not be downloadable after decoding',
'new-task-uris-required': 'Please enter at least one valid resource url',
'new-task-torrent-required': 'Please select a torrent file',
- 'file-name': 'File Name',
- 'file-extension': 'File Type',
- 'file-size': 'File Size',
+ 'file-name': 'Name',
+ 'file-extension': 'Extension',
+ 'file-size': 'Size',
+ 'file-completed-size': 'Completed',
'selected-files-sum': 'Selected: {{selectedFilesCount}} files, total size {{selectedFilesTotalSize}}',
'task-name': 'Task Name',
'task-out': 'Rename',
@@ -26,6 +27,27 @@ export default {
'task-referer': 'Referer',
'task-cookie': 'Cookie',
'task-proxy': 'Proxy',
+ 'task-error-info': 'Error',
+ 'task-piece': 'Piece',
+ 'task-piece-length': 'Piece Size',
+ 'task-num-pieces': 'Pieces',
+ 'task-bittorrent-info': 'Torrent Info',
+ 'task-info-hash': 'Hash',
+ 'task-bittorrent-creation-date': 'Creation Date',
+ 'task-bittorrent-comment': 'Comment',
+ 'task-progress-info': 'Progress',
+ 'task-status': 'Status',
+ 'task-num-seeders': 'Seeders',
+ 'task-connections': 'Connections',
+ 'task-file-size': 'Size',
+ 'task-download-speed': 'Download Speed',
+ 'task-upload-speed': 'Upload Speed',
+ 'task-download-length': 'Downloaded',
+ 'task-upload-length': 'Uploaded',
+ 'task-ratio': 'Ratio',
+ 'task-peer-host': 'Host',
+ 'task-peer-ip': 'IP',
+ 'task-peer-client': 'Client',
'navigate-to-downloading': 'Navigate to Downloading',
'show-advanced-options': 'Advanced Options',
'copyright-warning': 'Copyright Warning',
@@ -78,6 +100,7 @@ export default {
'get-task-name': 'Getting task name...',
'remaining-prefix': 'Remaining',
'select-torrent': 'Drag torrent file here, or click to select',
+ 'task-detail-title': 'Task Details',
'task-info-dialog-title': '{{title}} Details',
'download-start-message': 'Started downloading {{taskName}}',
'download-pause-message': 'Paused downloading {{taskName}}',
diff --git a/src/shared/locales/index.js b/src/shared/locales/index.js
index 2aceda24..3f6a63da 100644
--- a/src/shared/locales/index.js
+++ b/src/shared/locales/index.js
@@ -100,7 +100,7 @@ export const availableLanguages = [
}
]
-function checkLngIsAvailable(locale) {
+function checkLngIsAvailable (locale) {
return availableLanguages.some(lng => lng.value === locale)
}
@@ -120,7 +120,7 @@ function checkLngIsAvailable(locale) {
* pt, pt-BR, pt-PT
* zh, zh-CN, zh-TW
*/
-export function getLanguage(locale = 'en-US') {
+export function getLanguage (locale = 'en-US') {
if (checkLngIsAvailable(locale)) {
return locale
}
diff --git a/src/shared/locales/zh-CN/task.js b/src/shared/locales/zh-CN/task.js
index 4dd9f532..fedc1ee2 100644
--- a/src/shared/locales/zh-CN/task.js
+++ b/src/shared/locales/zh-CN/task.js
@@ -12,10 +12,11 @@ export default {
'new-task-uris-required': '请至少输入一个有效的下载地址',
'new-task-torrent-required': '请先选择种子文件',
'file-name': '文件名',
- 'file-extension': '类型',
+ 'file-extension': '扩展名',
'file-size': '大小',
+ 'file-completed-size': '已完成',
'selected-files-sum': '已选:{{selectedFilesCount}}个文件,共 {{selectedFilesTotalSize}}',
- 'task-name': '任务名',
+ 'task-name': '任务名称',
'task-out': '重命名',
'task-out-tips': '选填',
'task-split': '分片数',
@@ -25,6 +26,27 @@ export default {
'task-referer': 'Referer',
'task-cookie': 'Cookie',
'task-proxy': '代理',
+ 'task-error-info': '错误信息',
+ 'task-piece': '分片',
+ 'task-piece-length': '分片大小',
+ 'task-num-pieces': '分片数量',
+ 'task-bittorrent-info': '种子信息',
+ 'task-info-hash': 'Hash',
+ 'task-bittorrent-creation-date': '发布时间',
+ 'task-bittorrent-comment': '备注',
+ 'task-progress-info': '任务进度',
+ 'task-status': '任务状态',
+ 'task-num-seeders': '种子数',
+ 'task-connections': '连接数',
+ 'task-file-size': '文件大小',
+ 'task-download-speed': '下载速度',
+ 'task-upload-speed': '上传速度',
+ 'task-download-length': '已下载',
+ 'task-upload-length': '已上传',
+ 'task-ratio': '分享率',
+ 'task-peer-host': '服务器',
+ 'task-peer-ip': 'IP',
+ 'task-peer-client': '客户端',
'navigate-to-downloading': '跳转到下载页面',
'show-advanced-options': '高级选项',
'copyright-warning': '版权提醒',
@@ -78,6 +100,7 @@ export default {
'get-task-name': '获取任务名中...',
'remaining-prefix': '剩余',
'select-torrent': '将种子拖到此处,或点击选择',
+ 'task-detail-title': '任务详情',
'task-info-dialog-title': '{{title}} 详情',
'download-start-message': '开始下载 {{taskName}}',
'download-pause-message': '暂停下载 {{taskName}}',
diff --git a/src/shared/locales/zh-TW/task.js b/src/shared/locales/zh-TW/task.js
index b59b2665..08697864 100644
--- a/src/shared/locales/zh-TW/task.js
+++ b/src/shared/locales/zh-TW/task.js
@@ -14,6 +14,7 @@ export default {
'file-name': '文件名',
'file-extension': '擴展名',
'file-size': '大小',
+ 'file-completed-size': '已完成',
'selected-files-sum': '選中:{{selectedFilesCount}}個文件,總計 {{selectedFilesTotalSize}}',
'task-name': '任務名稱',
'task-out': '重新命名',
@@ -25,6 +26,27 @@ export default {
'task-referer': 'Referer',
'task-cookie': 'Cookie',
'task-proxy': '代理伺服器',
+ 'task-error-info': '錯誤信息',
+ 'task-piece': '分片',
+ 'task-piece-length': '分片大小',
+ 'task-num-pieces': '分片數量',
+ 'task-bittorrent-info': '種子信息',
+ 'task-info-hash': 'Hash',
+ 'task-bittorrent-creation-date': '發佈時間',
+ 'task-bittorrent-comment': '備註',
+ 'task-progress-info': '任務進度',
+ 'task-status': '任務狀態',
+ 'task-num-seeders': '種子數',
+ 'task-connections': '連接數',
+ 'task-file-size': '文件大小',
+ 'task-download-speed': '下載速度',
+ 'task-upload-speed': '上傳速度',
+ 'task-download-length': '已下載',
+ 'task-upload-length': '已上傳',
+ 'task-ratio': '分享率',
+ 'task-peer-host': '伺服器',
+ 'task-peer-ip': 'IP',
+ 'task-peer-client': '客戶端',
'navigate-to-downloading': '前往下載頁面',
'show-advanced-options': '進階選項',
'copyright-warning': '版權警告',
@@ -79,6 +101,8 @@ export default {
'remaining-prefix': '剩下',
'select-torrent': '將種子拖曳至此,或點選來選取',
'task-info-dialog-title': '{{title}} 詳細資訊',
+ 'task-detail-title': '任務詳細資訊',
+ 'task-info-dialog-title': '{{title}} 詳細資訊',
'download-start-message': '開始下載 {{taskName}}',
'download-pause-message': '暫停下載 {{taskName}}',
'download-stop-message': '{{taskName}} 下載中止',