summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-01-07 10:20:05 +0100
committerGitHub <noreply@github.com>2022-01-07 10:20:05 +0100
commitcc9de3fbef9246c89eba4b1a47ce23cc0ba45d06 (patch)
tree815434d8d30fd5b426f4ef5dc42134ce17c90002 /apps/comments
parenta7811334370b735427d41a953abd53ec5648ab59 (diff)
parent85444605d3d610f68d10a5b0aa33198c6e691343 (diff)
downloadnextcloud-server-cc9de3fbef9246c89eba4b1a47ce23cc0ba45d06.tar.gz
nextcloud-server-cc9de3fbef9246c89eba4b1a47ce23cc0ba45d06.zip
Merge pull request #30284 from nextcloud/Valdnet-patch-1
l10n: Separate words and add dots
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/lib/Notification/Notifier.php4
-rw-r--r--apps/comments/tests/Unit/Notification/NotifierTest.php8
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/comments/lib/Notification/Notifier.php b/apps/comments/lib/Notification/Notifier.php
index fa0924f313e..745cb513978 100644
--- a/apps/comments/lib/Notification/Notifier.php
+++ b/apps/comments/lib/Notification/Notifier.php
@@ -145,9 +145,9 @@ class Notifier implements INotifier {
];
if ($isDeletedActor) {
- $subject = $l->t('You were mentioned on “{file}”, in a comment by a user that has since been deleted');
+ $subject = $l->t('You were mentioned on "{file}", in a comment by a user that has since been deleted');
} else {
- $subject = $l->t('{user} mentioned you in a comment on “{file}”');
+ $subject = $l->t('{user} mentioned you in a comment on "{file}"');
$subjectParameters['user'] = [
'type' => 'user',
'id' => $comment->getActorId(),
diff --git a/apps/comments/tests/Unit/Notification/NotifierTest.php b/apps/comments/tests/Unit/Notification/NotifierTest.php
index 1c8b644918d..330530f0000 100644
--- a/apps/comments/tests/Unit/Notification/NotifierTest.php
+++ b/apps/comments/tests/Unit/Notification/NotifierTest.php
@@ -95,7 +95,7 @@ class NotifierTest extends TestCase {
public function testPrepareSuccess() {
$fileName = 'Gre\'thor.odp';
$displayName = 'Huraga';
- $message = '@Huraga mentioned you in a comment on “Gre\'thor.odp”';
+ $message = '@Huraga mentioned you in a comment on "Gre\'thor.odp"';
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
$user = $this->createMock(IUser::class);
@@ -149,7 +149,7 @@ class NotifierTest extends TestCase {
$this->notification
->expects($this->once())
->method('setRichSubject')
- ->with('{user} mentioned you in a comment on “{file}”', $this->anything())
+ ->with('{user} mentioned you in a comment on "{file}"', $this->anything())
->willReturnSelf();
$this->notification
->expects($this->once())
@@ -224,7 +224,7 @@ class NotifierTest extends TestCase {
public function testPrepareSuccessDeletedUser() {
$fileName = 'Gre\'thor.odp';
- $message = 'You were mentioned on “Gre\'thor.odp”, in a comment by a user that has since been deleted';
+ $message = 'You were mentioned on "Gre\'thor.odp", in a comment by a user that has since been deleted';
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $you */
$you = $this->createMock(IUser::class);
@@ -273,7 +273,7 @@ class NotifierTest extends TestCase {
$this->notification
->expects($this->once())
->method('setRichSubject')
- ->with('You were mentioned on “{file}”, in a comment by a user that has since been deleted', $this->anything())
+ ->with('You were mentioned on "{file}", in a comment by a user that has since been deleted', $this->anything())
->willReturnSelf();
$this->notification
->expects($this->once())