Merge pull request #39444 from nextcloud/fix/l10n-manager

fix(l10n): User manager
pull/37581/head
Daniel 2023-07-18 18:40:44 +07:00 committed by GitHub
commit d3393af978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 10 deletions

@ -154,11 +154,12 @@
<div :class="['modal__item managers', { 'icon-loading-small': loading.manager }]">
<label class="modal__label"
for="new-user-manager">
<!-- TRANSLATORS This string describes a manager in the context of an organization -->
{{ t('settings', 'Manager') }}
</label>
<NcSelect class="modal__select"
input-id="new-user-manager"
:placeholder="t('settings', 'Set user manager')"
:placeholder="managerLabel"
:options="possibleManagers"
v-model="newUser.manager"
:user-select="true"
@ -213,6 +214,8 @@ export default {
data() {
return {
possibleManagers: [],
// TRANSLATORS This string describes a manager in the context of an organization
managerLabel: t('settings', 'Set user manager'),
}
},

@ -82,6 +82,7 @@
</th>
<th class="header__cell header__cell--large"
scope="col">
<!-- TRANSLATORS This string describes a manager in the context of an organization -->
<span>{{ t('settings', 'Manager') }}</span>
</th>
<th class="header__cell header__cell--actions"

@ -259,7 +259,7 @@
<template v-if="idState.editing">
<label class="hidden-visually"
:for="'manager' + uniqueId">
{{ t('settings', 'Set the manager') }}
{{ managerLabel }}
</label>
<NcSelect v-model="idState.currentManager"
:input-id="'manager' + uniqueId"
@ -268,7 +268,7 @@
:loading="idState.loading.manager"
label="displayname"
:options="idState.possibleManagers"
:placeholder="t('settings', 'Select manager')"
:placeholder="managerLabel"
class="select-vue"
@search="searchUserManager"
@option:selected="updateUserManager"
@ -394,6 +394,8 @@ export default {
editedDisplayName: this.user.displayname,
editedPassword: '',
editedMail: this.user.email ?? '',
// TRANSLATORS This string describes a manager in the context of an organization
managerLabel: t('settings', 'Set user manager'),
}
},
@ -578,7 +580,8 @@ export default {
value: this.idState.currentManager ? this.idState.currentManager.id : '',
})
} catch (error) {
showError(t('setting', 'Update of user manager was failed'))
// TRANSLATORS This string describes a manager in the context of an organization
showError(t('setting', 'Failed to update user manager'))
console.error(error)
} finally {
this.idState.loading.manager = false

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long