From 3fb261b5c843bd7cb4e217ddaa7d72dad44c41f8 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Wed, 12 Jun 2024 17:19:17 +0800 Subject: [PATCH] fix: Role details - multiple instances of English in permissions list --- apps/i18n/lina/ja.json | 2 +- apps/i18n/lina/zh.json | 2 +- apps/i18n/lina/zh_hant.json | 2 +- apps/rbac/tree.py | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/i18n/lina/ja.json b/apps/i18n/lina/ja.json index 22debf0cc..54339b625 100644 --- a/apps/i18n/lina/ja.json +++ b/apps/i18n/lina/ja.json @@ -178,7 +178,7 @@ "BasicSetting": "基本設定", "BatchConsent": "一括同意", "BatchDeployment": "一括デプロイ", - "BatchProcessing": "バルク処理({Number} アイテムが選択されています)", + "BatchProcessing": "バルク処理({number} アイテムが選択されています)", "BatchReject": "一括拒否", "BatchTest": "一括テスト", "BasicSettings": "基本設定", diff --git a/apps/i18n/lina/zh.json b/apps/i18n/lina/zh.json index 7197f0333..92d5d2696 100644 --- a/apps/i18n/lina/zh.json +++ b/apps/i18n/lina/zh.json @@ -200,7 +200,7 @@ "BasicSettings": "基本设置", "BatchConsent": "批量同意", "BatchDeployment": "批量部署", - "BatchProcessing": "批量处理(选中 {Number} 项)", + "BatchProcessing": "批量处理(选中 {number} 项)", "BatchReject": "批量拒绝", "BatchTest": "批量测试", "BeforeChange": "变更前", diff --git a/apps/i18n/lina/zh_hant.json b/apps/i18n/lina/zh_hant.json index 3ac191a6b..10278d1e2 100644 --- a/apps/i18n/lina/zh_hant.json +++ b/apps/i18n/lina/zh_hant.json @@ -225,7 +225,7 @@ "BatchConsent": "批次同意", "BatchDelete": "批次刪除", "BatchDisable": "批次禁用", - "BatchProcessing": "批次處理(選中 {Number} 項)", + "BatchProcessing": "批次處理(選中 {number} 項)", "BatchReject": "批次拒絕", "BatchRemoval": "批次移除", "BatchRetry": "批次重試", diff --git a/apps/rbac/tree.py b/apps/rbac/tree.py index 20f329a2f..49b014bcd 100644 --- a/apps/rbac/tree.py +++ b/apps/rbac/tree.py @@ -234,10 +234,10 @@ class CounterTree(Tree): class PermissionTreeUtil: get_permissions: Callable action_mapper = { - 'add': _('create'), - 'view': _('view'), - 'change': _('update'), - 'delete': _('delete') + 'add': _('Create'), + 'view': _('View'), + 'change': _('Update'), + 'delete': _('Delete') } action_icon = { 'add': 'add',