File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
user_guide_src/source/libraries Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -762,9 +762,12 @@ a boolean true or false value signifying true if it passed the test or false if
762
762
763
763
.. literalinclude :: validation/034.php
764
764
765
- By default, the system will look within **system/Language/en/Validation.php ** for the language strings used
766
- within errors. In custom rules, you may provide error messages by accepting a ``&$error `` variable by reference in the
767
- second parameter:
765
+ By default, the system will look within **system/Language/en/Validation.php ** for the language strings used within
766
+ errors. To provide default error messages for your custom rules, you may place them in **app/Language/en/Validation.php **
767
+ (and/or corresponding folder of locale you use in place of ``en ``). Also, in case you want to use some other language
768
+ string file in place of the default **Validation.php **, you may provide error messages by accepting an ``&$error ``
769
+ variable by reference in the second (or, in case your rule needs to work with parameters, as described below – the
770
+ fourth) parameter:
768
771
769
772
.. literalinclude :: validation/035.php
770
773
You can’t perform that action at this time.
0 commit comments