From a0cbeefb141250256ba46a8754ab2534e177db23 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 29 May 2020 21:27:33 +0300 Subject: [PATCH 1/3] Fix language inconsistency --- src/lang/en.js | 6 +++--- src/views/users/components/UsersFilter.vue | 2 +- src/views/users/show.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lang/en.js b/src/lang/en.js index 2e504315..bdf0208e 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -258,12 +258,12 @@ export default { admin: 'Admin', local: 'local', external: 'external', - localUppercase: 'Local', + accountType: 'Account type', nickname: 'Nickname', recentStatuses: 'Recent Statuses', roles: 'Roles', - activeUppercase: 'Active', active: 'active', + status: 'Status', deactivated: 'deactivated', noStatuses: 'No statuses to show', securitySettings: { @@ -284,7 +284,7 @@ export default { }, usersFilter: { inputPlaceholder: 'Select filter', - byUserType: 'By user type', + byAccountType: 'By account type', local: 'Local', external: 'External', byStatus: 'By status', diff --git a/src/views/users/components/UsersFilter.vue b/src/views/users/components/UsersFilter.vue index f3083213..7b3bf55b 100644 --- a/src/views/users/components/UsersFilter.vue +++ b/src/views/users/components/UsersFilter.vue @@ -6,7 +6,7 @@ multiple class="select-field" @change="toggleFilters"> - + {{ $t('usersFilter.local') }} {{ $t('usersFilter.external') }} diff --git a/src/views/users/show.vue b/src/views/users/show.vue index a4ae844a..f0b44cc6 100644 --- a/src/views/users/show.vue +++ b/src/views/users/show.vue @@ -76,14 +76,14 @@ - {{ $t('userProfile.localUppercase') }} + {{ $t('userProfile.accountType') }} {{ $t('userProfile.local') }} {{ $t('userProfile.external') }} - {{ $t('userProfile.activeUppercase') }} + {{ $t('userProfile.status') }} {{ $t('userProfile.active') }} {{ $t('userProfile.deactivated') }} From d92d018831c41e2328c747c289112aceb18561bd Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 29 May 2020 21:57:43 +0300 Subject: [PATCH 2/3] Put tags and statuses in uppercase --- src/lang/en.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/lang/en.js b/src/lang/en.js index bdf0208e..86bc614c 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -171,16 +171,16 @@ export default { id: 'ID', name: 'Name', status: 'Status', - local: 'local', - external: 'external', - deactivated: 'deactivated', - active: 'active', - unconfirmed: 'unconfirmed', + local: 'Local', + external: 'External', + deactivated: 'Deactivated', + active: 'Active', + unconfirmed: 'Unconfirmed', actions: 'Actions', activate: 'Activate', deactivate: 'Deactivate', - admin: 'admin', - moderator: 'moderator', + admin: 'Admin', + moderator: 'Moderator', moderation: 'Moderation', revokeAdmin: 'Revoke Admin', grantAdmin: 'Grant Admin', @@ -205,8 +205,8 @@ export default { moderateUser: 'Moderate user', moderateUsers: 'Moderate multiple users', createAccount: 'Create new account', - apply: 'apply', - remove: 'remove', + apply: 'Apply', + remove: 'Remove', grantRightConfirmation: 'Are you sure you want to grant {right} rights to all selected users?', revokeRightConfirmation: 'Are you sure you want to revoke {right} rights from all selected users?', activateMultipleUsersConfirmation: 'Are you sure you want to activate accounts of all selected users?', @@ -256,15 +256,15 @@ export default { tags: 'Tags', moderator: 'Moderator', admin: 'Admin', - local: 'local', - external: 'external', + local: 'Local', + external: 'External', accountType: 'Account type', nickname: 'Nickname', recentStatuses: 'Recent Statuses', roles: 'Roles', - active: 'active', + active: 'Active', status: 'Status', - deactivated: 'deactivated', + deactivated: 'Deactivated', noStatuses: 'No statuses to show', securitySettings: { email: 'Email', From 247fdf61f4f6f42738e6dacc0e7f4c1866b684a9 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 29 May 2020 22:33:33 +0300 Subject: [PATCH 3/3] Humanize tags on User Profile page --- src/views/users/show.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/users/show.vue b/src/views/users/show.vue index f0b44cc6..dfc1a163 100644 --- a/src/views/users/show.vue +++ b/src/views/users/show.vue @@ -59,7 +59,7 @@ {{ $t('userProfile.tags') }} - + @@ -177,6 +177,17 @@ export default { this.resetPasswordDialogOpen = false this.$store.dispatch('RemovePasswordToken') }, + humanizeTag(tag) { + const mapTags = { + 'force_nsfw': 'Force NSFW', + 'strip_media': 'Strip Media', + 'force_unlisted': 'Force Unlisted', + 'sandbox': 'Sandbox', + 'disable_remote_subscription': 'Disable remote subscription', + 'disable_any_subscription': 'Disable any subscription' + } + return mapTags[tag] + }, onTogglePrivate() { this.$store.dispatch('FetchUserProfile', { userId: this.$route.params.id, godmode: this.showPrivate }) },