validation.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used
  9. | by the validator class. Some of the rules contain multiple versions,
  10. | such as the size (max, min, between) rules. These versions are used
  11. | for different input types such as strings and files.
  12. |
  13. | These language lines may be easily changed to provide custom error
  14. | messages in your application. Error messages for custom validation
  15. | rules may also be added to this file.
  16. |
  17. */
  18. "accepted" => "Le champ :attribute doit être accepté.",
  19. "active_url" => "Le champ :attribute n'est pas une URL valide.",
  20. "after" => "Le champ :attribute doit être une date après :date.",
  21. "alpha" => "Le champ :attribute ne doit contenir que des lettres.",
  22. "alpha_dash" => "Le champ :attribute ne doit contenir que des lettres, nombres et des tirets.",
  23. "alpha_num" => "Le champ :attribute ne doit contenir que des lettres et nombres.",
  24. "array" => "The :attribute must have selected elements.",
  25. "before" => "Le champ :attribute doit être une date avant :date.",
  26. "between" => array(
  27. "numeric" => "Le champ :attribute doit être entre :min - :max.",
  28. "file" => "Le champ :attribute doit être entre :min - :max kilo-octets.",
  29. "string" => "Le champ :attribute doit être entre :min - :max caractères.",
  30. ),
  31. "confirmed" => "Le champ :attribute confirmation est différent.",
  32. "count" => "The :attribute must have exactly :count selected elements.",
  33. "countbetween" => "The :attribute must have between :min and :max selected elements.",
  34. "countmax" => "The :attribute must have less than :max selected elements.",
  35. "countmin" => "The :attribute must have at least :min selected elements.",
  36. "different" => "Les champ :attribute et :other doivent être différents.",
  37. "email" => "Le format du champ :attribute est invalide.",
  38. "exists" => "Le champ sélectionné :attribute est invalide.",
  39. "image" => "Le champ :attribute doit être une image.",
  40. "in" => "Le champ sélectionné :attribute est invalide.",
  41. "integer" => "Le champ :attribute doit être un entier.",
  42. "ip" => "Le champ :attribute doit être une adresse IP valide.",
  43. "match" => "Le format du champ :attribute est invalide.",
  44. "max" => array(
  45. "numeric" => "Le :attribute doit être plus petit que :max.",
  46. "file" => "Le :attribute doit être plus petit que :max kilo-octets.",
  47. "string" => "Le :attribute doit être plus petit que :max caractères.",
  48. ),
  49. "mimes" => "Le champ :attribute doit être un fichier de type: :values.",
  50. "min" => array(
  51. "numeric" => "Le champ :attribute doit être au moins :min.",
  52. "file" => "Le champ :attribute doit être au moins :min kilo-octets.",
  53. "string" => "Le champ :attribute doit être au moins :min caractères.",
  54. ),
  55. "not_in" => "Le champ sélectionné :attribute est invalide.",
  56. "numeric" => "Le champ :attribute doit être un nombre.",
  57. "required" => "Le champ :attribute est requis",
  58. "same" => "Le champ :attribute et :other doivent être identique.",
  59. "size" => array(
  60. "numeric" => "Le champ :attribute doit être :size.",
  61. "file" => "Le champ :attribute doit être de :size kilo-octets.",
  62. "string" => "Le champ :attribute doit être de :size caractères.",
  63. ),
  64. "unique" => "Le champ :attribute est déjà utilisé.",
  65. "url" => "Le champ :attribute à un format invalide.",
  66. /*
  67. |--------------------------------------------------------------------------
  68. | Custom Validation Language Lines
  69. |--------------------------------------------------------------------------
  70. |
  71. | Here you may specify custom validation messages for attributes using the
  72. | convention "attribute_rule" to name the lines. This helps keep your
  73. | custom validation clean and tidy.
  74. |
  75. | So, say you want to use a custom validation message when validating that
  76. | the "email" attribute is unique. Just add "email_unique" to this array
  77. | with your custom message. The Validator will handle the rest!
  78. |
  79. */
  80. 'custom' => array(),
  81. /*
  82. |--------------------------------------------------------------------------
  83. | Validation Attributes
  84. |--------------------------------------------------------------------------
  85. |
  86. | The following language lines are used to swap attribute place-holders
  87. | with something more reader friendly such as "E-Mail Address" instead
  88. | of "email". Your users will thank you.
  89. |
  90. | The Validator class will automatically search this array of lines it
  91. | is attempting to replace the :attribute place-holder in messages.
  92. | It's pretty slick. We think you'll like it.
  93. |
  94. */
  95. 'attributes' => array(),
  96. );