diff --git a/ui/console-src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue b/ui/console-src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue index 68e9be5ff0..21f12b46a3 100644 --- a/ui/console-src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue +++ b/ui/console-src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue @@ -49,7 +49,9 @@ const handleSave = async () => { (group) => group.spec.displayName === formState.value.spec.displayName ); if (hasDisplayNameDuplicate) { - Toast.error(t("core.common.toast.group_name_exists")); + Toast.error( + t("core.attachment.group_editing_modal.toast.group_name_exists") + ); return; } diff --git a/ui/console-src/modules/contents/attachments/components/AttachmentPolicyEditingModal.vue b/ui/console-src/modules/contents/attachments/components/AttachmentPolicyEditingModal.vue index 367b4d5e1c..d5cb89475b 100644 --- a/ui/console-src/modules/contents/attachments/components/AttachmentPolicyEditingModal.vue +++ b/ui/console-src/modules/contents/attachments/components/AttachmentPolicyEditingModal.vue @@ -141,7 +141,9 @@ const handleSave = async () => { ); if (hasDisplayNameDuplicate) { - Toast.error(t("core.common.toast.policy_name_exists")); + Toast.error( + t("core.attachment.policy_editing_modal.toast.policy_name_exists") + ); return; } diff --git a/ui/src/locales/en.yaml b/ui/src/locales/en.yaml index 1936b5beb5..4de7d181e9 100644 --- a/ui/src/locales/en.yaml +++ b/ui/src/locales/en.yaml @@ -26,7 +26,9 @@ core: logout: tooltip: Logout title: Logout - description: Clicking Confirm will redirect to the logout page. Please ensure that the content you are editing is saved. + description: >- + Clicking Confirm will redirect to the logout page. Please ensure that + the content you are editing is saved. profile: tooltip: Profile visit_homepage: @@ -598,6 +600,8 @@ core: fields: display_name: label: Display name + toast: + group_name_exists: Group name already exists group_list: internal_groups: all: All @@ -643,6 +647,8 @@ core: fields: display_name: label: Display name + toast: + policy_name_exists: Storage policy name already exists upload_modal: title: Upload attachment filters: @@ -666,8 +672,8 @@ core: empty: title: There are no attachments. message: >- - There are no attachments, you can try refreshing or - uploading attachments. + There are no attachments, you can try refreshing or uploading + attachments. actions: upload: Upload Attachment filters: @@ -1457,7 +1463,9 @@ core: first: >- 1. The restore process may last for a long time, please do not refresh the page during this period. - second: 2. Before performing the restore, all existing data will be cleared. Please ensure that there is no data that needs to be retained. + second: >- + 2. Before performing the restore, all existing data will be cleared. + Please ensure that there is no data that needs to be retained. third: >- 3. After the restore is completed, you need to restart Halo to load the system resources normally. @@ -1673,7 +1681,9 @@ core: creation_label: Create {text} tag validation: trim: Please remove the leading and trailing spaces - password: "The password can only use uppercase and lowercase letters (A-Z, a-z), numbers (0-9), and the following special characters: !{'@'}#$%^&*" + password: >- + The password can only use uppercase and lowercase letters (A-Z, a-z), + numbers (0-9), and the following special characters: !{'@'}#$%^&* verification_form: no_action_defined: "{label} interface not defined" verify_success: "{label} successful" @@ -1791,7 +1801,10 @@ core: editor_not_found: >- No editor found that matches the {raw_type} format. Please check if the editor plugin has been installed. - login_expired: The current session has expired. Click Confirm to go to the login page. Please ensure that the current content is saved. You can click Cancel to manually copy any unsaved content. + login_expired: >- + The current session has expired. Click Confirm to go to the login + page. Please ensure that the current content is saved. You can click + Cancel to manually copy any unsaved content. filters: results: keyword: "Keyword: {keyword}" @@ -1832,7 +1845,9 @@ core: title: Cancel publish delete: title: Delete post - description: This action will move the post to the recycle bin, where it will be managed by the site administrator. + description: >- + This action will move the post to the recycle bin, where it will be + managed by the site administrator. publish_modal: title: Publish post setting_modal: diff --git a/ui/src/locales/zh-CN.yaml b/ui/src/locales/zh-CN.yaml index 7a6612dde1..5ad468be78 100644 --- a/ui/src/locales/zh-CN.yaml +++ b/ui/src/locales/zh-CN.yaml @@ -572,6 +572,8 @@ core: fields: display_name: label: 名称 + toast: + group_name_exists: 分组名称已存在 group_list: internal_groups: all: 全部 @@ -607,6 +609,8 @@ core: fields: display_name: label: 名称 + toast: + policy_name_exists: 存储策略名称已存在 upload_modal: title: 上传附件 filters: @@ -1671,8 +1675,6 @@ core: unknown_error: 未知错误 disable_success: 禁用成功 enable_success: 啟用成功 - group_name_exists: 该分组名称已存在,请重新创建 - policy_name_exists: 该存储策略已存在,请重新创建 dialog: titles: tip: 提示 diff --git a/ui/src/locales/zh-TW.yaml b/ui/src/locales/zh-TW.yaml index fed0c13f2a..9fb191650f 100644 --- a/ui/src/locales/zh-TW.yaml +++ b/ui/src/locales/zh-TW.yaml @@ -549,6 +549,8 @@ core: fields: display_name: label: 名稱 + toast: + group_name_exists: 分組名稱已存在 group_list: internal_groups: all: 全部 @@ -584,6 +586,8 @@ core: fields: display_name: label: 名稱 + toast: + policy_name_exists: 儲存策略名稱已存在 upload_modal: title: 上傳附件 filters: