From c8e86f5e6450984647ba40386106901e5d2b215d Mon Sep 17 00:00:00 2001 From: Oleg Voronkovich Date: Sat, 25 Jan 2020 19:22:15 +0300 Subject: [PATCH] Add translation for message about slug uniqueness --- src/Entity/Post.php | 2 +- translations/validators+intl-icu.en.xlf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Entity/Post.php b/src/Entity/Post.php index 936b74def..3115f6126 100644 --- a/src/Entity/Post.php +++ b/src/Entity/Post.php @@ -20,7 +20,7 @@ /** * @ORM\Entity(repositoryClass="App\Repository\PostRepository") * @ORM\Table(name="symfony_demo_post") - * @UniqueEntity(fields={"slug"}, errorPath="title", message="This title was already used in another blog post, but they must be unique.") + * @UniqueEntity(fields={"slug"}, errorPath="title", message="post.slug_unique") * * Defines the properties of the Post entity to represent the blog posts. * diff --git a/translations/validators+intl-icu.en.xlf b/translations/validators+intl-icu.en.xlf index 3692cb793..d27c627da 100644 --- a/translations/validators+intl-icu.en.xlf +++ b/translations/validators+intl-icu.en.xlf @@ -2,6 +2,10 @@ + + post.slug_unique + This title was already used in another blog post, but they must be unique. + post.blank_summary Give your post a summary!