From 2d9294132f971545dc48f01f03a049ace721101e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 15 Apr 2024 14:35:08 +0200 Subject: [PATCH] fix(chat): Rename circles to teams in system messages Signed-off-by: Joas Schilling --- lib/Chat/Parser/SystemMessage.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Chat/Parser/SystemMessage.php b/lib/Chat/Parser/SystemMessage.php index 30ceaba620d..32c3d109450 100644 --- a/lib/Chat/Parser/SystemMessage.php +++ b/lib/Chat/Parser/SystemMessage.php @@ -416,19 +416,19 @@ protected function parseMessage(Message $chatMessage): void { } } elseif ($message === 'circle_added') { $parsedParameters['circle'] = $this->getCircle($parameters['circle']); - $parsedMessage = $this->l->t('{actor} added circle {circle}'); + $parsedMessage = $this->l->t('{actor} added team {circle}'); if ($currentUserIsActor) { - $parsedMessage = $this->l->t('You added circle {circle}'); + $parsedMessage = $this->l->t('You added team {circle}'); } elseif ($cliIsActor) { - $parsedMessage = $this->l->t('An administrator added circle {circle}'); + $parsedMessage = $this->l->t('An administrator added team {circle}'); } } elseif ($message === 'circle_removed') { $parsedParameters['circle'] = $this->getCircle($parameters['circle']); - $parsedMessage = $this->l->t('{actor} removed circle {circle}'); + $parsedMessage = $this->l->t('{actor} removed team {circle}'); if ($currentUserIsActor) { - $parsedMessage = $this->l->t('You removed circle {circle}'); + $parsedMessage = $this->l->t('You removed team {circle}'); } elseif ($cliIsActor) { - $parsedMessage = $this->l->t('An administrator removed circle {circle}'); + $parsedMessage = $this->l->t('An administrator removed team {circle}'); } } elseif ($message === 'phone_added') { $parsedParameters['phone'] = $this->getPhone($room, $parameters['phone'], $parameters['name']);