8000 minor #7976 Fix Validators misspelling (Treenity) · richard4339/symfony-docs@984dce8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 984dce8

Browse files
committed
minor symfony#7976 Fix Validators misspelling (Treenity)
This PR was submitted for the 3.3 branch but it was merged into the 2.7 branch instead (closes symfony#7976). Discussion ---------- Fix Validators misspelling This fix the Validators misspelling in documentation Commits ------- f6a5b3a Fix typo
2 parents a216951 + f6a5b3a commit 984dce8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

validation/translations.rst

Lines 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