Skip to content

Commit

Permalink
Merge pull request #8342 from dgvirtual/default_message_change_doc
Browse files Browse the repository at this point in the history
Add explanation on changing default error messages
  • Loading branch information
kenjis authored Dec 19, 2023
2 parents 99e3d4a + e6d3fef commit 2198dfd
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 2198dfd

Please sign in to comment.