validation.php 4.8 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" => ":attribute m&aring;ste accepteras.",
  19. "active_url" => ":attribute &auml;r inte en giltig webbadress.",
  20. "after" => ":attribute m&aring;ste vara ett datum efter den :date.",
  21. "alpha" => ":attribute f&aring;r endast inneh&aring;lla bokst&auml;ver.",
  22. "alpha_dash" => ":attribute f&aring;r endast inneh&aring;lla bokst&auml;ver, nummer och bindestreck.",
  23. "alpha_num" => ":attribute f&aring;r endast inneh&aring;lla bokst&auml;ver och nummer.",
  24. "array" => ":attribute m&aring;ste ha valda element.",
  25. "before" => ":attribute m&aring;ste vara ett datum innan den :date.",
  26. "between" => array(
  27. "numeric" => ":attribute m&aring;ste vara ett nummer mellan :min och :max.",
  28. "file" => ":attribute m&aring;ste vara mellan :min till :max kilobytes stor.",
  29. "string" => ":attribute m&aring;ste inneh&aring;lla :min till :max tecken.",
  30. ),
  31. "confirmed" => ":attribute bekr&auml;ftelsen matchar inte.",
  32. "count" => ":attribute m&aring;ste exakt ha :count valda element.",
  33. "countbetween" => ":attribute f&aring;r endast ha :min till :max valda element.",
  34. "countmax" => ":attribute f&aring;r max ha :max valda element.",
  35. "countmin" => ":attribute m&aring;ste minst ha :min valda element.",
  36. "different" => ":attribute och :other f&aring;r ej vara lika.",
  37. "email" => ":attribute formatet &auml;r ogiltig.",
  38. "exists" => "Det valda :attribute &auml;r ogiltigt.",
  39. "image" => ":attribute m&aring;ste vara en bild.",
  40. "in" => "Det valda :attribute &auml;r ogiltigt.",
  41. "integer" => ":attribute m&aring;ste vara en siffra.",
  42. "ip" => ":attribute m&aring;ste vara en giltig IP-adress.",
  43. "match" => ":attribute formatet &auml;r ogiltig.",
  44. "max" => array(
  45. "numeric" => ":attribute f&aring;r inte vara st&ouml;rre &auml;n :max.",
  46. "file" => ":attribute f&aring;r max vara :max kilobytes stor.",
  47. "string" => ":attribute f&aring;r max inneh&aring;lla :max tecken.",
  48. ),
  49. "mimes" => ":attribute m&aring;ste vara en fil av typen: :values.",
  50. "min" => array(
  51. "numeric" => ":attribute m&aring;ste vara st&ouml;rre &auml;n :min.",
  52. "file" => ":attribute m&aring;ste minst vara :min kilobytes stor.",
  53. "string" => ":attribute m&aring;ste minst inneh&aring;lla :min tecken.",
  54. ),
  55. "not_in" => "Det valda :attribute &auml;r ogiltigt.",
  56. "numeric" => ":attribute m&aring;ste vara ett nummer.",
  57. "required" => ":attribute f&auml;ltet &auml;r obligatoriskt.",
  58. "same" => ":attribute och :other m&aring;ste vara likadana.",
  59. "size" => array(
  60. "numeric" => ":attribute m&aring;ste vara :size.",
  61. "file" => ":attribute f&aring;r endast vara :size kilobyte stor.",
  62. "string" => ":attribute m&aring;ste inneh&aring;lla :size tecken.",
  63. ),
  64. "unique" => ":attribute anv&auml;nds redan.",
  65. "url" => ":attribute formatet &auml;r ogiltig",
  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. );