validation.php 4.6 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" => "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. "array" => "The :attribute must have selected elements.",
  25. "before" => "Isian :attribute harus tanggal sebelum :date.",
  26. "between" => array(
  27. "numeric" => "Isian :attribute harus antara :min - :max.",
  28. "file" => "Isian :attribute harus antara :min - :max kilobytes.",
  29. "string" => "Isian :attribute harus antara :min - :max karakter.",
  30. ),
  31. "confirmed" => "Konfirmasi :attribute tidak cocok.",
  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" => "Isian :attribute dan :other harus berbeda.",
  37. "email" => "Format isian :attribute tidak valid.",
  38. "exists" => "Isian :attribute yang dipilih tidak valid.",
  39. "image" => ":attribute harus berupa gambar.",
  40. "in" => "Isian :attribute yang dipilih tidak valid.",
  41. "integer" => "Isian :attribute harus merupakan bilangan.",
  42. "ip" => "Isian :attribute harus alamat IP yang valid.",
  43. "match" => "Format isian :attribute tidak valid.",
  44. "max" => array(
  45. "numeric" => "Isian :attribute harus kurang dari :max.",
  46. "file" => "Isian :attribute harus kurang dari :max kilobytes.",
  47. "string" => "Isian :attribute harus kurang dari :max karakter.",
  48. ),
  49. "mimes" => "Isian :attribute harus dokumen berjenis : :values.",
  50. "min" => array(
  51. "numeric" => "Isian :attribute harus minimal :min.",
  52. "file" => "Isian :attribute harus minimal :min kilobytes.",
  53. "string" => "Isian :attribute harus minimal :min karakter.",
  54. ),
  55. "not_in" => "Isian :attribute yang dipilih tidak valid.",
  56. "numeric" => "Isian :attribute harus berupa angka.",
  57. "required" => "Isian :attribute wajib diisi.",
  58. "same" => "Isian :attribute dan :other harus sama.",
  59. "size" => array(
  60. "numeric" => "Isian :attribute harus berukuran :size.",
  61. "file" => "Isian :attribute harus berukuran :size kilobyte.",
  62. "string" => "Isian :attribute harus berukuran :size karakter.",
  63. ),
  64. "unique" => "Isian :attribute sudah ada sebelumnya.",
  65. "url" => "Format isian :attribute tidak valid.",
  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. );