Skip to content

Commit 4016b3c

Browse files
committed
minor #1073 Add a translation for a message about slug uniqueness (voronkovich)
This PR was merged into the master branch. Discussion ---------- Add a translation for a message about slug uniqueness Commits ------- c8e86f5 Add translation for message about slug uniqueness
2 parents 3abd67a + c8e86f5 commit 4016b3c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Entity/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* @ORM\Entity(repositoryClass="App\Repository\PostRepository")
2222
* @ORM\Table(name="symfony_demo_post")
23-
* @UniqueEntity(fields={"slug"}, errorPath="title", message="This title was already used in another blog post, but they must be unique.")
23+
* @UniqueEntity(fields={"slug"}, errorPath="title", message="post.slug_unique")
2424
*
2525
* Defines the properties of the Post entity to represent the blog posts.
2626
*

translations/validators+intl-icu.en.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
33
<file source-language="en" target-language="en" datatype="plaintext" original="file.ext">
44
<body>
5+
<trans-unit id="post.slug_unique">
6+
<source>post.slug_unique</source>
7+
<target>This title was already used in another blog post, but they must be unique.</target>
8+
</trans-unit>
59
<trans-unit id="post.blank_summary">
610
<source>post.blank_summary</source>
711
<target>Give your post a summary!</target>

0 commit comments

Comments
 (0)