validation.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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" => "Isian :attribute harus diterima.",
  19. "active_url" => "Isian :attribute bukan URL yang valid.",
  20. "after" => "Isian :attribute harus tanggal setelah :date.",
  21. "alpha" => "Isian :attribute hanya boleh berisi huruf.",
  22. "alpha_dash" => "Isian :attribute hanya boleh berisi huruf, angka, dan strip.",
  23. "alpha_num" => "Isian :attribute hanya boleh berisi huruf dan angka.",
  24. "before" => "Isian :attribute harus tanggal sebelum :date.",
  25. "between" => array(
  26. "numeric" => "Isian :attribute harus antara :min - :max.",
  27. "file" => "Isian :attribute harus antara :min - :max kilobytes.",
  28. "string" => "Isian :attribute harus antara :min - :max karakter.",
  29. ),
  30. "confirmed" => "Konfirmasi :attribute tidak cocok.",
  31. "different" => "Isian :attribute dan :other harus berbeda.",
  32. "email" => "Format isian :attribute tidak valid.",
  33. "exists" => "Isian :attribute yang dipilih tidak valid.",
  34. "image" => ":attribute harus berupa gambar.",
  35. "in" => "Isian :attribute yang dipilih tidak valid.",
  36. "integer" => "Isian :attribute harus merupakan bilangan.",
  37. "ip" => "Isian :attribute harus alamat IP yang valid.",
  38. "match" => "Format isian :attribute tidak valid.",
  39. "max" => array(
  40. "numeric" => "Isian :attribute harus kurang dari :max.",
  41. "file" => "Isian :attribute harus kurang dari :max kilobytes.",
  42. "string" => "Isian :attribute harus kurang dari :max karakter.",
  43. ),
  44. "mimes" => "Isian :attribute harus dokumen berjenis : :values.",
  45. "min" => array(
  46. "numeric" => "Isian :attribute harus minimal :min.",
  47. "file" => "Isian :attribute harus minimal :min kilobytes.",
  48. "string" => "Isian :attribute harus minimal :min karakter.",
  49. ),
  50. "not_in" => "Isian :attribute yang dipilih tidak valid.",
  51. "numeric" => "Isian :attribute harus berupa angka.",
  52. "required" => "Isian :attribute wajib diisi.",
  53. "same" => "Isian :attribute dan :other harus sama.",
  54. "size" => array(
  55. "numeric" => "Isian :attribute harus berukuran :size.",
  56. "file" => "Isian :attribute harus berukuran :size kilobyte.",
  57. "string" => "Isian :attribute harus berukuran :size karakter.",
  58. ),
  59. "unique" => "Isian :attribute sudah ada sebelumnya.",
  60. "url" => "Format isian :attribute tidak valid.",
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Custom Validation Language Lines
  64. |--------------------------------------------------------------------------
  65. |
  66. | Here you may specify custom validation messages for attributes using the
  67. | convention "attribute_rule" to name the lines. This helps keep your
  68. | custom validation clean and tidy.
  69. |
  70. | So, say you want to use a custom validation message when validating that
  71. | the "email" attribute is unique. Just add "email_unique" to this array
  72. | with your custom message. The Validator will handle the rest!
  73. |
  74. */
  75. 'custom' => array(),
  76. /*
  77. |--------------------------------------------------------------------------
  78. | Validation Attributes
  79. |--------------------------------------------------------------------------
  80. |
  81. | The following language lines are used to swap attribute place-holders
  82. | with something more reader friendly such as "E-Mail Address" instead
  83. | of "email". Your users will thank you.
  84. |
  85. | The Validator class will automatically search this array of lines it
  86. | is attempting to replace the :attribute place-holder in messages.
  87. | It's pretty slick. We think you'll like it.
  88. |
  89. */
  90. 'attributes' => array(),
  91. );