Merge pull request #51666 from nextcloud/backport/51644/stable31

[stable31] fix(user): Some strings not being translated
This commit is contained in:
Andy Scherzinger 2025-03-30 13:42:40 +02:00 committed by GitHub
commit dfc067ad7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 13 deletions

View file

@ -576,7 +576,7 @@ export default {
})
} catch (error) {
// TRANSLATORS This string describes a line manager in the context of an organization
showError(t('setting', 'Failed to update line manager'))
showError(t('settings', 'Failed to update line manager'))
console.error(error)
} finally {
this.loading.manager = false
@ -638,7 +638,7 @@ export default {
})
if (this.editedDisplayName === this.user.displayname) {
showSuccess(t('setting', 'Display name was successfully changed'))
showSuccess(t('settings', 'Display name was successfully changed'))
}
} finally {
this.loading.displayName = false
@ -651,7 +651,7 @@ export default {
async updatePassword() {
this.loading.password = true
if (this.editedPassword.length === 0) {
showError(t('setting', "Password can't be empty"))
showError(t('settings', "Password can't be empty"))
this.loading.password = false
} else {
try {
@ -661,7 +661,7 @@ export default {
value: this.editedPassword,
})
this.editedPassword = ''
showSuccess(t('setting', 'Password was successfully changed'))
showSuccess(t('settings', 'Password was successfully changed'))
} finally {
this.loading.password = false
}
@ -674,7 +674,7 @@ export default {
async updateEmail() {
this.loading.mailAddress = true
if (this.editedMail === '') {
showError(t('setting', "Email can't be empty"))
showError(t('settings', "Email can't be empty"))
this.loading.mailAddress = false
this.editedMail = this.user.email
} else {
@ -686,7 +686,7 @@ export default {
})
if (this.editedMail === this.user.email) {
showSuccess(t('setting', 'Email was successfully changed'))
showSuccess(t('settings', 'Email was successfully changed'))
}
} finally {
this.loading.mailAddress = false
@ -890,7 +890,7 @@ export default {
sendWelcomeMail() {
this.loading.all = true
this.$store.dispatch('sendWelcomeMail', this.user.id)
.then(() => showSuccess(t('setting', 'Welcome mail sent!'), { timeout: 2000 }))
.then(() => showSuccess(t('settings', 'Welcome mail sent!'), { timeout: 2000 }))
.finally(() => {
this.loading.all = 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