From e6d3fef00425aabda53ac30ce6e36880a06c2b30 Mon Sep 17 00:00:00 2001 From: Donatas Glodenis Date: Sun, 17 Dec 2023 12:00:46 +0200 Subject: [PATCH] Add explanation on changing default error messages --- user_guide_src/source/libraries/validation.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user_guide_src/source/libraries/validation.rst b/user_guide_src/source/libraries/validation.rst index 41b9fa34f93d..6db2806f3e49 100644 --- a/user_guide_src/source/libraries/validation.rst +++ b/user_guide_src/source/libraries/validation.rst @@ -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: