diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-07-17 16:35:40 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-07-17 16:35:40 -0700 |
commit | af120f6b427294ac0972fd86342bbbe66210431c (patch) | |
tree | 417479a11aa0da5e153fb8361a526073ae591cdc /apps/settings/src | |
parent | 609ff63ff1f076493d1e5417088b4b7f58243c63 (diff) | |
download | nextcloud-server-af120f6b427294ac0972fd86342bbbe66210431c.tar.gz nextcloud-server-af120f6b427294ac0972fd86342bbbe66210431c.zip |
fix(l10n): Manager
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/components/Users/NewUserModal.vue | 5 | ||||
-rw-r--r-- | apps/settings/src/components/Users/UserListHeader.vue | 1 | ||||
-rw-r--r-- | apps/settings/src/components/Users/UserRow.vue | 9 |
3 files changed, 11 insertions, 4 deletions
diff --git a/apps/settings/src/components/Users/NewUserModal.vue b/apps/settings/src/components/Users/NewUserModal.vue index 1ad4a6fafaa..d8a9eb64a3e 100644 --- a/apps/settings/src/components/Users/NewUserModal.vue +++ b/apps/settings/src/components/Users/NewUserModal.vue @@ -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'), } }, diff --git a/apps/settings/src/components/Users/UserListHeader.vue b/apps/settings/src/components/Users/UserListHeader.vue index 3357d1c1bc2..c81534ceac9 100644 --- a/apps/settings/src/components/Users/UserListHeader.vue +++ b/apps/settings/src/components/Users/UserListHeader.vue @@ -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" diff --git a/apps/settings/src/components/Users/UserRow.vue b/apps/settings/src/components/Users/UserRow.vue index 83d1fcd8160..fcd9829db1e 100644 --- a/apps/settings/src/components/Users/UserRow.vue +++ b/apps/settings/src/components/Users/UserRow.vue @@ -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 |