Skip to content

Commit

Permalink
Add explanation on changing default error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dgvirtual committed Dec 17, 2023
1 parent 521cc98 commit e6d3fef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion user_guide_src/source/libraries/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ The Validation library provides several methods to help you set error messages,
custom error messages, and retrieve one or more errors to display.

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

.. _validation-custom-errors:

Expand Down

0 comments on commit e6d3fef

Please sign in to comment.