Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f6a5b3a

Browse filesBrowse files
Treenityxabbuh
authored andcommitted
Fix typo
1 parent a216951 commit f6a5b3a
Copy full SHA for f6a5b3a

File tree

Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed

‎validation/translations.rst

Copy file name to clipboardExpand all lines: validation/translations.rst
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,13 @@ property is not empty, add the following:
8484
}
8585
}
8686
87-
Create a translation file under the ``validators`` catalog for the constraint
88-
messages, typically in the ``Resources/translations/`` directory of the bundle.
87+
Now, create a ``validators`` catalog file in the ``app/Resources/translations`` directory:
8988

9089
.. configuration-block::
9190

9291
.. code-block:: xml
9392
94-
<!-- validators.en.xlf -->
93+
<!-- app/Resources/translations/validators.en.xlf -->
9594
<?xml version="1.0"?>
9695
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
9796
<file source-language="en" datatype="plaintext" original="file.ext">
@@ -106,12 +105,15 @@ messages, typically in the ``Resources/translations/`` directory of the bundle.
106105
107106
.. code-block:: yaml
108107
109-
# validators.en.yml
108+
# app/Resources/translations/validators.en.yml
110109
author.name.not_blank: Please enter an author name.
111110
112111
.. code-block:: php
113112
114-
// validators.en.php
113+
// app/Resources/translations/validators.en.php
115114
return array(
116115
'author.name.not_blank' => 'Please enter an author name.',
117116
);
117+
118+
You may need to clear your cache (even in the dev environment) after creating this
119+
file for the first time.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.