From 76f495fc83e5d91f852e40fa2af3f893edd5f3fc Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Sun, 5 Nov 2023 21:37:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E4=B8=8A=E4=BC=A0=E7=A9=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=20(#2806?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 2 + frontend/src/lang/modules/tw.ts | 2 + frontend/src/lang/modules/zh.ts | 2 + .../host/file-management/upload/index.vue | 117 +++++++++--------- 4 files changed, 66 insertions(+), 57 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 12af197d8..7d4a287f0 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -988,6 +988,8 @@ const message = { addFavorite: 'Add to favorites', clearList: 'Clear list', deleteRecycleHelper: 'Are you sure you want to permanently delete the following files?', + typeErrOrEmpty: '[{0}] file type is wrong or empty folder', + dropHelper: 'Drag [{0}] here, or', }, ssh: { autoStart: 'Auto Start', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index a30066647..6883f53ec 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -949,6 +949,8 @@ const message = { addFavorite: '加入收藏夾', clearList: '清空列表', deleteRecycleHelper: '確定永久刪除以下文件?', + typeErrOrEmpty: '【{0}】 檔案類型錯誤或為空資料夾', + dropHelper: '將【{0}】拖曳到此處,或', }, ssh: { autoStart: '開機自啟', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 56310112f..c24f2292c 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -950,6 +950,8 @@ const message = { addFavorite: '加入收藏夹子', clearList: '清空列表', deleteRecycleHelper: '确定永久删除以下文件?', + typeErrOrEmpty: '【{0}】 文件类型错误或为空文件夹', + dropHelper: '将【{0}】拖拽到此处,或者', }, ssh: { autoStart: '开机自启', diff --git a/frontend/src/views/host/file-management/upload/index.vue b/frontend/src/views/host/file-management/upload/index.vue index 67f8513a4..35d9af030 100644 --- a/frontend/src/views/host/file-management/upload/index.vue +++ b/frontend/src/views/host/file-management/upload/index.vue @@ -10,22 +10,12 @@
- - - {{ $t('file.upload') }} - +
+ + {{ $t('file.upload') }}{{ $t('file.file') }} - - + {{ $t('file.upload') }}{{ $t('file.dir') }} +
{{ $t('file.clearList') }}
@@ -43,7 +33,7 @@ >
- {{ $t('database.dropHelper') }} + {{ $t('file.dropHelper', [$t('file.' + uploadType)]) }} {{ $t('database.clickHelper') }}