Skip to content

Commit 7dc958c

Browse files
committed
Change prefix for translation messages
1 parent f918956 commit 7dc958c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

app/Resources/translations/messages.en.xlf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,13 @@
276276
<source>post.deleted_successfully</source>
277277
<target>Post deleted successfully!</target>
278278
</trans-unit>
279-
<trans-unit id="post.comment_added">
280-
<source>post.comment_added</source>
279+
280+
<trans-unit id="notification.comment_created">
281+
<source>notification.comment_created</source>
281282
<target>Your post received a comment!</target>
282283
</trans-unit>
283-
<trans-unit id="post.comment_added.description">
284-
<source>post.comment_added.description</source>
284+
<trans-unit id="notification.comment_created.description">
285+
<source>notification.comment_created.description</source>
285286
<target><![CDATA[Your post "%title%" has received a new comment. You can read the comment by following <a href="%link%">this link</a>]]></target>
286287
</trans-unit>
287288

src/AppBundle/EventListener/CommentNotificationListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function onCommentCreated(GenericEvent $event)
7171
'_fragment' => 'comment_'.$comment->getId(),
7272
], UrlGeneratorInterface::ABSOLUTE_URL);
7373

74-
$subject = $this->translator->trans('post.comment_added');
75-
$body = $this->translator->trans('post.comment_added.description', [
74+
$subject = $this->translator->trans('notification.comment_created');
75+
$body = $this->translator->trans('notification.comment_created.description', [
7676
'%title%' => $post->getTitle(),
7777
'%link%' => $linkToPost,
7878
]);

0 commit comments

Comments
 (0)