diff --git a/lib/Notifications/Notifier.php b/lib/Notifications/Notifier.php index 0765cf79..cf3f7bc5 100644 --- a/lib/Notifications/Notifier.php +++ b/lib/Notifications/Notifier.php @@ -76,9 +76,9 @@ public function prepare(INotification $notification, string $languageCode): INot case 'guest-transfer-fail': $params = $notification->getSubjectParameters(); $notification - ->setRichSubject($l->t('Guest transfer failed')) + ->setRichSubject($l->t('Guest conversion failed')) ->setRichMessage( - $l->t('Failed to transfer guest {guest} to {user}'), + $l->t('Failed to convert guest {guest} account to {user} account'), $this->getRichMessageParams($params['source'], $params['target']), ); return $notification; @@ -86,9 +86,9 @@ public function prepare(INotification $notification, string $languageCode): INot case 'guest-transfer-done': $params = $notification->getSubjectParameters(); $notification - ->setRichSubject($l->t('Guest transfer done')) + ->setRichSubject($l->t('Guest conversion done')) ->setRichMessage( - $l->t('Transfer of guest {guest} to {user} completed'), + $l->t('Conversion of guest {guest} to {user} completed'), $this->getRichMessageParams($params['source'], $params['target']), ); return $notification; diff --git a/src/components/TransferGuestDialog.vue b/src/components/TransferGuestDialog.vue index 91345414..ed1b188a 100644 --- a/src/components/TransferGuestDialog.vue +++ b/src/components/TransferGuestDialog.vue @@ -4,7 +4,7 @@ --> @@ -68,14 +68,14 @@ import { logger } from '../services/logger.ts' const generateMessage = ({ source, target, status }: { source: string, target: string, status: 'waiting' | 'started' }) => { const matchStatus = { - waiting: t('guests', 'Transfer of guest {strongStart}{guest}{strongEnd} to {strongStart}{user}{strongEnd} is pending', { + waiting: t('guests', 'Conversion of guest {strongStart}{guest}{strongEnd} to {strongStart}{user}{strongEnd} is pending', { guest: source, user: target, strongStart: '', strongEnd: '', }, undefined, { escape: false, sanitize: false }), - started: t('guests', 'Transfer of guest {strongStart}{guest}{strongEnd} to {strongStart}{user}{strongEnd} has started', { + started: t('guests', 'Conversion of guest {strongStart}{guest}{strongEnd} to {strongStart}{user}{strongEnd} has started', { guest: source, user: target, strongStart: '', diff --git a/src/users.ts b/src/users.ts index d0c413ff..1d6470a4 100644 --- a/src/users.ts +++ b/src/users.ts @@ -18,7 +18,7 @@ const transferGuest = (_event: MouseEvent, user: User): void => { if (userId === null) { return } - showSuccess(t('guests', 'Guest will be transferred to "{userId}" soon', { userId })) + showSuccess(t('guests', 'Guest will be converted to a regular account with the account name "{userId}" soon', { userId })) } spawnDialog(TransferGuestDialog, { @@ -32,7 +32,7 @@ const enabled = (user: User) => user?.backend === 'Guests' const registerAction = () => { window.OCA.Settings.UserList.registerAction( SvgAccountArrowRight, - t('guests', 'Transfer guest to full account'), + t('guests', 'Convert guest to regular account'), transferGuest, enabled, )