traslate text validator

traslate text validator

rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2

as changing the text field validation , for example when a numeric data is validated "a number This input must be Given as" change this text as it appears to Spanish

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    To provide a custom error message you can use the validation options. In PHP this is done thus (documentation):

    validator( 'Validate::numeric', array(
      "message" => "Custom error message"
    ) )
    

    In C# (documentation):

        Validator(Validation.Numeric( 16, new ValidationOpts{
            Message = "Custom error message"
        } ))
    

    Allan

This discussion has been closed.