File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
app/Resources/translations
src/AppBundle/EventListener Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 276
276
<source >post.deleted_successfully</source >
277
277
<target >Post deleted successfully!</target >
278
278
</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 >
281
282
<target >Your post received a comment!</target >
282
283
</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 >
285
286
<target ><![CDATA[ Your post "%title%" has received a new comment. You can read the comment by following <a href="%link%">this link</a>]]> </target >
286
287
</trans-unit >
287
288
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ public function onCommentCreated(GenericEvent $event)
71
71
'_fragment ' => 'comment_ ' .$ comment ->getId (),
72
72
], UrlGeneratorInterface::ABSOLUTE_URL );
73
73
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 ' , [
76
76
'%title% ' => $ post ->getTitle (),
77
77
'%link% ' => $ linkToPost ,
78
78
]);
You can’t perform that action at this time.
0 commit comments