Skip to content

Commit e6d3fef

Browse files
committed
Add explanation on changing default error messages
1 parent 521cc98 commit e6d3fef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

user_guide_src/source/libraries/validation.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ The Validation library provides several methods to help you set error messages,
554554
custom error messages, and retrieve one or more errors to display.
555555

556556
By default, error messages are derived from language strings in **system/Language/en/Validation.php**, where
557-
each rule has an entry.
557+
each rule has an entry. In case you want to change a message default, create a file
558+
**app/Language/en/Validation.php** (and/or corresponding folder of locale you use in place of/besides ``en``)
559+
and place in it keys and values of those error messages for which you want different defaults.
558560

559561
.. _validation-custom-errors:
560562

0 commit comments

Comments
 (0)