Default global custom messages (transations) for the validators

Default global custom messages (transations) for the validators

zajczajc Posts: 67Questions: 10Answers: 2

How can we set the default custom message (translations) for the validators? For example ->validator('Validate::notEmpty'). I would like to set the custom messages globally not just for the individual fields.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Currently what you will need to do is change the string value in the Validate.php file. There isn't currently the ability to set that globally from an external file.

    Allan

This discussion has been closed.