validation.php 4.7 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" => "Polje :attribute mora biti prihvaćeno.",
  19. "active_url" => "Polje :attribute nije validan URL.",
  20. "after" => "Polje :attribute mora biti datum posle :date.",
  21. "alpha" => "Polje :attribute može sadržati samo slova.",
  22. "alpha_dash" => "Polje :attribute može sadržati samo slova, brojeve i povlake.",
  23. "alpha_num" => "Polje :attribute može sadržati samo slova i brojeve.",
  24. "array" => "Polje :attribute mora imati odabrane elemente.",
  25. "before" => "Polje :attribute mora biti datum pre :date.",
  26. "between" => array(
  27. "numeric" => "Polje :attribute mora biti izmedju :min - :max.",
  28. "file" => "Fajl :attribute mora biti izmedju :min - :max kilobajta.",
  29. "string" => "Polje :attribute mora biti izmedju :min - :max karaktera.",
  30. ),
  31. "confirmed" => "Potvrda polja :attribute se ne poklapa.",
  32. "count" => "Polje :attribute mora imati tačno :count odabranih elemenata.",
  33. "countbetween" => "Polje :attribute mora imati izmedju :min i :max odabranih elemenata.",
  34. "countmax" => "Polje :attribute mora imati manje od :max odabranih elemenata.",
  35. "countmin" => "Polje :attribute mora imati najmanje :min odabranih elemenata.",
  36. "different" => "Polja :attribute i :other moraju biti različita.",
  37. "email" => "Format polja :attribute nije validan.",
  38. "exists" => "Odabrano polje :attribute nije validno.",
  39. "image" => "Polje :attribute mora biti slika.",
  40. "in" => "Odabrano polje :attribute nije validno.",
  41. "integer" => "Polje :attribute mora biti broj.",
  42. "ip" => "Polje :attribute mora biti validna IP adresa.",
  43. "match" => "Format polja :attribute nije validan.",
  44. "max" => array(
  45. "numeric" => "Polje :attribute mora biti manje od :max.",
  46. "file" => "Polje :attribute mora biti manje od :max kilobajta.",
  47. "string" => "Polje :attribute mora sadržati manje od :max karaktera.",
  48. ),
  49. "mimes" => "Polje :attribute mora biti fajl tipa: :values.",
  50. "min" => array(
  51. "numeric" => "Polje :attribute mora biti najmanje :min.",
  52. "file" => "Fajl :attribute mora biti najmanje :min kilobajta.",
  53. "string" => "Polje :attribute mora sadržati najmanje :min karaktera.",
  54. ),
  55. "not_in" => "Odabrani element polja :attribute nije validan.",
  56. "numeric" => "Polje :attribute mora biti broj.",
  57. "required" => "Polje :attribute je obavezno.",
  58. "same" => "Polja :attribute i :other se moraju poklapati.",
  59. "size" => array(
  60. "numeric" => "Polje :attribute mora biti :size.",
  61. "file" => "Fajl :attribute mora biti :size kilobajta.",
  62. "string" => "Polje :attribute mora biti :size karaktera.",
  63. ),
  64. "unique" => "Polje :attribute već postoji.",
  65. "url" => "Format polja :attribute nije validan.",
  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. );