Skip to content

Commit b2b51fd

Browse files
authored
Merge pull request #2448 from nextcloud/backport/2447/stable4
[stable4] Fix translation problem in notifications
2 parents 8132e46 + d742e50 commit b2b51fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Activity/Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getSubjectString(IL10N $l10n, string $subject): string {
102102
return $l10n->t('{user} has shared the form {formTitle} with team {circle}');
103103

104104
case ActivityConstants::SUBJECT_NEWSUBMISSION:
105-
return $l10n->t('{user} answered your form {formTitle}');
105+
return $l10n->t('Your form {formTitle} was answered by {user}');
106106

107107
default:
108108
$this->logger->warning('Some unknown activity has been found: ' . $subject);

tests/Unit/Activity/ProviderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ public function testFullParse() {
178178
]);
179179
$event->expects($this->once())
180180
->method('setParsedSubject')
181-
->with('The affected User answered your form SomeChangedNiceFormTitle');
181+
->with('Your form SomeChangedNiceFormTitle was answered by The affected User');
182182
$event->expects($this->once())
183183
->method('setRichSubject')
184-
->with('{user} answered your form {formTitle}', [
184+
->with('Your form {formTitle} was answered by {user}', [
185185
'user' => [
186186
'type' => 'user',
187187
'id' => 'affectedUser',
@@ -211,7 +211,7 @@ public function dataGetSubjectString() {
211211
['newshare', '{user} has shared the form {formTitle} with you'],
212212
['newgroupshare', '{user} has shared the form {formTitle} with group {group}'],
213213
['newcircleshare', '{user} has shared the form {formTitle} with team {circle}'],
214-
['newsubmission', '{user} answered your form {formTitle}']
214+
['newsubmission', 'Your form {formTitle} was answered by {user}']
215215
];
216216
}
217217
/**

0 commit comments

Comments
 (0)