Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: [Validation] Add explanation on changing default error messages #8342

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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