Skip to content

Commit

Permalink
Merge pull request #12197 from nextcloud/backport/12113/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(chat): Rename circles to teams in system messages
  • Loading branch information
nickvergessen authored May 23, 2024
2 parents e020cdc + d7dd76a commit e88b366
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Chat/Parser/SystemMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit e88b366

Please sign in to comment.