From 6de50f1e0056a923aaf16f11bac6f63ce7a8fca6 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 11 May 2020 15:58:13 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E5=8E=BB=E6=8E=89i18n=E7=9A=84?= =?UTF-8?q?=E8=BF=87=E5=BA=A6=E5=8C=85=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ActionsGroup/index.vue | 4 +- src/components/AutoDataTable/index.vue | 4 +- src/components/DataForm/index.vue | 4 +- .../DataZTree/components/ZTree/index.vue | 2 +- src/components/DetailCard/index.vue | 2 +- src/components/Dialog/index.vue | 4 +- src/components/DialogAction/index.vue | 10 ++--- src/components/GrantedAssets/index.vue | 2 +- src/components/ListTable/TableAction.vue | 8 ++-- .../ListTable/formatters/ActionsFormatter.vue | 12 ++--- .../formatters/DeleteActionFormatter.vue | 4 +- src/components/QuickActions/index.vue | 2 +- src/components/RelationCard/index.vue | 4 +- src/i18n/i18n.js | 19 -------- .../GenericCreateUpdateForm/index.vue | 4 +- .../components/GenericDetailPage/index.vue | 12 ++--- .../components/NavHeader/AccountDropdown.vue | 8 ++-- src/layout/components/NavHeader/index.vue | 8 ++-- src/views/applications/DatabaseAppList.vue | 2 +- src/views/assets/AdminUser/AdminUserList.vue | 10 ++--- src/views/assets/AssetList.vue | 2 +- .../CommandFilterDetail/Rules.vue | 4 +- .../CommandFilter/CommandFilterList.vue | 2 +- src/views/assets/Domain/DomainList.vue | 2 +- src/views/assets/GatewayList.vue | 2 +- src/views/assets/Label/LabelList.vue | 2 +- src/views/assets/Platform/PlatformList.vue | 2 +- .../SystemUser/SystemUserCreateUpdate.vue | 8 ++-- .../SystemUser/SystemUserDetail/AssetList.vue | 2 +- .../SystemUserDetail/AutoPushCard.vue | 4 +- .../assets/SystemUser/SystemUserList.vue | 14 +++--- .../AdhocDetail/AdhocExecutionHistory.vue | 2 +- src/views/jobcenter/TaskDetail/TaskAdhoc.vue | 2 +- .../jobcenter/TaskDetail/TaskHistory.vue | 2 +- src/views/jobcenter/TaskList.vue | 4 +- .../AssetPermissionCreateUpdate.vue | 4 +- .../AssetPermissionAsset.vue | 2 +- .../AssetPermissionDetail.vue | 2 +- .../AssetPermissionUser.vue | 2 +- .../AssetPermissionList/index.vue | 4 +- .../DatabaseAppPermissionCreateUpdate.vue | 2 +- .../DatabaseAppPermissionDatabaseApp.vue | 2 +- .../DatabaseAppPermissionDetail.vue | 2 +- .../DatabaseAppPermissionUser.vue | 2 +- .../RemoteAppPermissionCreateUpdate.vue | 2 +- .../RemoteAppPermissionDetail.vue | 2 +- .../RemoteAppPermissionList.vue | 4 +- src/views/sessions/SessionOfflineList.vue | 2 +- src/views/sessions/SessionOnlineList.vue | 2 +- src/views/sessions/TerminalUpdate.vue | 2 +- src/views/settings/Ldap.vue | 8 ++-- .../groups/UserGroupDetail/GroupInfo.vue | 10 ++--- .../users/groups/UserGroupDetail/index.vue | 4 +- src/views/users/users/UserCreateUpdate.vue | 2 +- src/views/users/users/UserDetail/UserInfo.vue | 44 +++++++++---------- .../UserRemoteAppPermissionRules.vue | 4 +- src/views/users/users/UserDetail/index.vue | 14 +++--- src/views/users/users/UserList.vue | 4 +- 58 files changed, 143 insertions(+), 162 deletions(-) diff --git a/src/components/ActionsGroup/index.vue b/src/components/ActionsGroup/index.vue index d89389df0..62a2c9c06 100644 --- a/src/components/ActionsGroup/index.vue +++ b/src/components/ActionsGroup/index.vue @@ -41,7 +41,7 @@ export default { moreActionsTitle: { type: String, default() { - return this.$ttc('moreActions') + return this.$t('common.moreActions') } } }, @@ -66,7 +66,7 @@ export default { return actions }, iMoreActionsTitle() { - return this.moreActionsTitle || this.$ttc('moreActions') + return this.moreActionsTitle || this.$t('common.moreActions') } }, mounted() { diff --git a/src/components/AutoDataTable/index.vue b/src/components/AutoDataTable/index.vue index 86e213654..b648cd9f6 100644 --- a/src/components/AutoDataTable/index.vue +++ b/src/components/AutoDataTable/index.vue @@ -50,7 +50,7 @@ export default { case 'actions': col = { prop: 'id', - label: this.$ttc('actions'), + label: this.$t('common.actions'), align: 'center', formatter: ActionsFormatter, width: '150px', @@ -58,7 +58,7 @@ export default { } break case 'is_valid': - col.label = this.$ttc('validity') + col.label = this.$t('common.validity') col.formatter = BooleanFormatter col.align = 'center' col.width = '80px' diff --git a/src/components/DataForm/index.vue b/src/components/DataForm/index.vue index 5e2effe33..d196f06a6 100644 --- a/src/components/DataForm/index.vue +++ b/src/components/DataForm/index.vue @@ -14,8 +14,8 @@ {{ button.title }} - {{ $ttc('reset') }} - {{ $ttc('submit') }} + {{ $t('common.reset') }} + {{ $t('common.submit') }} diff --git a/src/components/DataZTree/components/ZTree/index.vue b/src/components/DataZTree/components/ZTree/index.vue index 415143f27..b09a6b067 100644 --- a/src/components/DataZTree/components/ZTree/index.vue +++ b/src/components/DataZTree/components/ZTree/index.vue @@ -53,7 +53,7 @@ export default { } if (res.length === 0) { res.push({ - name: this.$tco('empty') + name: this.$t('common.empty') }) } this.zTree = $.fn.zTree.init($('#ztree'), this.treeSetting, res) diff --git a/src/components/DetailCard/index.vue b/src/components/DetailCard/index.vue index 2e6759418..5698b6773 100644 --- a/src/components/DetailCard/index.vue +++ b/src/components/DetailCard/index.vue @@ -22,7 +22,7 @@ export default { title: { type: String, default() { - return this.$ttc('basicInfo') + return this.$t('common.basicInfo') } }, items: { diff --git a/src/components/Dialog/index.vue b/src/components/Dialog/index.vue index 023dc4de5..a21a424ed 100644 --- a/src/components/Dialog/index.vue +++ b/src/components/Dialog/index.vue @@ -7,8 +7,8 @@ diff --git a/src/components/DialogAction/index.vue b/src/components/DialogAction/index.vue index 942af61f5..96faf4af2 100644 --- a/src/components/DialogAction/index.vue +++ b/src/components/DialogAction/index.vue @@ -1,6 +1,6 @@