From b73b816ddb83faa3bb2d6cbbe247d10fbebfc2a0 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Fri, 29 Dec 2023 20:37:43 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=82=92=E3=82=82=E3=81=A3=E3=81=A8=E4=B8=81=E5=AF=A7=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 4 +++- locales/ja-JP.yml | 4 +++- packages/frontend/src/components/MkApprovalUser.vue | 5 +++-- packages/frontend/src/pages/admin/approvals.vue | 2 +- packages/frontend/src/pages/admin/index.vue | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 23cf6fa1b337..a20138112b0e 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -148,7 +148,8 @@ export interface Locale { "blockConfirm": string; "unblockConfirm": string; "suspendConfirm": string; - "approveConfirm": string; + "registerApproveConfirm": string; + "registerApproveConfirmDescription": string; "unsuspendConfirm": string; "selectList": string; "editList": string; @@ -878,6 +879,7 @@ export interface Locale { "off": string; "emailRequiredForSignup": string; "approvalRequiredForSignup": string; + "signupPendingApprovals": string; "unread": string; "filter": string; "controlPanel": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index f4977aaa1131..c4afb269d5f2 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -145,7 +145,8 @@ unsuspend: "解凍" blockConfirm: "ブロックしますか?" unblockConfirm: "ブロック解除しますか?" suspendConfirm: "凍結しますか?" -approveConfirm: "登録を承認しますか?" +registerApproveConfirm: "登録を承認しますか?" +registerApproveConfirmDescription: "この操作は取り消せません。承認後、このユーザーに登録が承認された旨が記載されたメールが送信されます。" unsuspendConfirm: "解凍しますか?" selectList: "リストを選択" editList: "リストを編集" @@ -875,6 +876,7 @@ on: "オン" off: "オフ" emailRequiredForSignup: "アカウント登録にメールアドレスを必須にする" approvalRequiredForSignup: "アカウント登録を承認制にする" +signupPendingApprovals: "アカウント登録の承認" unread: "未読" filter: "フィルタ" controlPanel: "コントロールパネル" diff --git a/packages/frontend/src/components/MkApprovalUser.vue b/packages/frontend/src/components/MkApprovalUser.vue index ef05f6e89558..06c3e6b1aae4 100644 --- a/packages/frontend/src/components/MkApprovalUser.vue +++ b/packages/frontend/src/components/MkApprovalUser.vue @@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ email }}
-
Reason
+
{{ i18n.ts.registerReason }}
{{ reason }}
@@ -89,7 +89,8 @@ async function deleteAccount() { async function approveAccount() { const confirm = await os.confirm({ type: 'warning', - text: i18n.ts.approveConfirm, + title: i18n.ts.registerApproveConfirm, + text: i18n.ts.registerApproveConfirmDescription, }); if (confirm.canceled) return; await os.api('admin/approve-user', { userId: props.user.id }); diff --git a/packages/frontend/src/pages/admin/approvals.vue b/packages/frontend/src/pages/admin/approvals.vue index bd94697fa07e..aeeb576dec55 100644 --- a/packages/frontend/src/pages/admin/approvals.vue +++ b/packages/frontend/src/pages/admin/approvals.vue @@ -54,7 +54,7 @@ const headerActions = computed(() => []); const headerTabs = computed(() => []); definePageMetadata(computed(() => ({ - title: i18n.ts.approvals, + title: i18n.ts.signupPendingApprovals, icon: 'ti ti-user-check', }))); diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index 21d5a468fb54..be7f2468ac54 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -117,7 +117,7 @@ const menuDef = computed(() => [{ active: currentPage.value?.route.name === 'invites', }, { icon: 'ti ti-user-check', - text: i18n.ts.approvals, + text: i18n.ts.signupPendingApprovals, to: '/admin/approvals', active: currentPage.value?.route.name === 'approvals', }, {