File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
app/Resources/translations Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ comment :
2
+ blank : Please don't leave your comment blank!
3
+ short : Comment is too short ({{ limit }} characters minimum)
4
+ long : Comment is too long ({{ limit }} characters maximum)
5
+ invalid : The content of this comment is considered spam.
6
+ summary :
7
+ blank : Give your post a summary!
8
+ post :
9
+ short : Post content is too short ({{ limit }} characters minimum)
Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ class Comment
43
43
44
44
/**
45
45
* @ORM\Column(type="text")
46
- * @Assert\NotBlank(message="Please don't leave your comment blank! ")
46
+ * @Assert\NotBlank(message="comment. blank")
47
47
* @Assert\Length(
48
48
* min = "5",
49
- * minMessage = "Comment is too short ({{ limit }} characters minimum) ",
49
+ * minMessage = "comment. short",
50
50
* max = "10000",
51
- * maxMessage = "Comment is too long ({{ limit }} characters maximum) "
51
+ * maxMessage = "comment. long"
52
52
* )
53
53
*/
54
54
private $ content ;
@@ -71,7 +71,7 @@ public function __construct()
71
71
}
72
72
73
73
/**
74
- * @Assert\IsTrue(message = "The content of this comment is considered spam. ")
74
+ * @Assert\IsTrue(message = "comment.invalid ")
75
75
*/
76
76
public function isLegitComment ()
77
77
{
Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ class Post
47
47
48
48
/**
49
49
* @ORM\Column(type="string")
50
- * @Assert\NotBlank(message="Give your post a summary! ")
50
+ * @Assert\NotBlank(message="summary.blank ")
51
51
*/
52
52
private $ summary ;
53
53
54
54
/**
55
55
* @ORM\Column(type="text")
56
56
* @Assert\Length(
57
57
* min = "10",
58
- * minMessage = "Post content is too short ({{ limit }} characters minimum) "
58
+ * minMessage = "post. short"
59
59
* )
60
60
*/
61
61
private $ content ;
You can’t perform that action at this time.
0 commit comments