File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Original file line number Diff line number Diff line change @@ -84,14 +84,13 @@ property is not empty, add the following:
84
84
}
85
85
}
86
86
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:
89
88
90
89
.. configuration-block ::
91
90
92
91
.. code-block :: xml
93
92
94
- <!-- validators.en.xlf -->
93
+ <!-- app/Resources/translations/ validators.en.xlf -->
95
94
<?xml version =" 1.0" ?>
96
95
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
97
96
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -106,12 +105,15 @@ messages, typically in the ``Resources/translations/`` directory of the bundle.
106
105
107
106
.. code-block :: yaml
108
107
109
- # validators.en.yml
108
+ # app/Resources/translations/ validators.en.yml
110
109
author.name.not_blank : Please enter an author name.
111
110
112
111
.. code-block :: php
113
112
114
- // validators.en.php
113
+ // app/Resources/translations/ validators.en.php
115
114
return array(
116
115
'author.name.not_blank' => 'Please enter an author name.',
117
116
);
117
+
118
+ You may need to clear your cache (even in the dev environment) after creating this
119
+ file for the first time.
You can’t perform that action at this time.
0 commit comments