validation.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Attribute Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines are used to swap attribute place-holders
  9. | with something more reader friendly such as "E-Mail Address" instead
  10. | of "email". Your users will thank you.
  11. |
  12. | The Validator class will automatically search this array of lines it
  13. | is attempting to replace the :attribute place-holder in messages.
  14. | It's pretty slick. We think you'll like it.
  15. |
  16. */
  17. 'attributes' => array(),
  18. /*
  19. |--------------------------------------------------------------------------
  20. | Validation Language Lines
  21. |--------------------------------------------------------------------------
  22. |
  23. | The following language lines contain the default error messages used
  24. | by the validator class. Some of the rules contain multiple versions,
  25. | such as the size (max, min, between) rules. These versions are used
  26. | for different input types such as strings and files.
  27. |
  28. | These language lines may be easily changed to provide custom error
  29. | messages in your application. Error messages for custom validation
  30. | rules may also be added to this file.
  31. |
  32. */
  33. "accepted" => "The :attribute must be accepted.",
  34. "active_url" => "The :attribute is not a valid URL.",
  35. "alpha" => "The :attribute may only contain letters.",
  36. "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
  37. "alpha_num" => "The :attribute may only contain letters and numbers.",
  38. "between" => array(
  39. "numeric" => "The :attribute must be between :min - :max.",
  40. "file" => "The :attribute must be between :min - :max kilobytes.",
  41. "string" => "The :attribute must be between :min - :max characters.",
  42. ),
  43. "confirmed" => "The :attribute confirmation does not match.",
  44. "email" => "The :attribute format is invalid.",
  45. "image" => "The :attribute must be an image.",
  46. "in" => "The selected :attribute is invalid.",
  47. "integer" => "The :attribute must be an integer.",
  48. "max" => array(
  49. "numeric" => "The :attribute must be less than :max.",
  50. "file" => "The :attribute must be less than :max kilobytes.",
  51. "string" => "The :attribute must be less than :max characters.",
  52. ),
  53. "mimes" => "The :attribute must be a file of type: :values.",
  54. "min" => array(
  55. "numeric" => "The :attribute must be at least :min.",
  56. "file" => "The :attribute must be at least :min kilobytes.",
  57. "string" => "The :attribute must be at least :min characters.",
  58. ),
  59. "not_in" => "The selected :attribute is invalid.",
  60. "numeric" => "The :attribute must be a number.",
  61. "required" => "The :attribute field is required.",
  62. "size" => array(
  63. "numeric" => "The :attribute must be :size.",
  64. "file" => "The :attribute must be :size kilobyte.",
  65. "string" => "The :attribute must be :size characters.",
  66. ),
  67. "unique" => "The :attribute has already been taken.",
  68. "url" => "The :attribute format is invalid.",
  69. );