validation.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | as the size rules. Feel free to tweak each of these messages here.
  11. |
  12. */
  13. 'accepted' => ':attribute harus diterima.',
  14. 'active_url' => ':attribute bukan berupa URL yang benar.',
  15. 'after' => ':attribute harus berupa tanggal setelah :date.',
  16. 'after_or_equal' => ':attribute harus berupa tanggal yang sama atau setelah :date.',
  17. 'alpha' => ':attribute hanya boleh berisi huruf.',
  18. 'alpha_dash' => ':attribute hanya boleh berisi huruf, angka dan tanda minus.',
  19. 'alpha_num' => ':attribute hanya boleh berisi huruf dan angka.',
  20. 'array' => ':attribute harus berupa array.',
  21. 'before' => ':attribute harus berupa tanggal sebelum :date.',
  22. 'before_or_equal' => ':attribute harus berupa tanggal yang sama atau sebelum :date.',
  23. 'between' => [
  24. 'numeric' => ':attribute harus antara :min dan :max.',
  25. 'file' => ':attribute harus antara :min dan :max KB.',
  26. 'string' => ':attribute harus antara :min dan :max karakter.',
  27. 'array' => ':attribute harus antara :min dan :max item.',
  28. ],
  29. 'boolean' => ':attribute harus berupa true atau false.',
  30. 'confirmed' => 'Konfirmasi :attribute tidak sama.',
  31. 'date' => ':attribute bukan berupa tanggal yang benar.',
  32. 'date_format' => ':attribute tidak sesuai dengan format :format.',
  33. 'different' => ':attribute dan :other harus berbeda.',
  34. 'digits' => ':attribute harus berisi :digits digit.',
  35. 'digits_between' => ':attribute harus antara :min dan :max digit.',
  36. 'dimensions' => ':attribute berisi dimensi gambar yang tidak benar.',
  37. 'distinct' => 'Bagian :attribute memiliki duplikasi.',
  38. 'email' => ':attribute harus berupa alamat email yang benar.',
  39. 'exists' => ':attribute yang dipilih tidak benar.',
  40. 'file' => ':attribute harus berupa berkas.',
  41. 'filled' => 'Bagian :attribute harus diisi.',
  42. 'image' => ':attribute harus berupa gambar.',
  43. 'in' => ':attribute yang dipilih tidak benar.',
  44. 'in_array' => 'Bagian :attribute tidak ada dalam :other.',
  45. 'integer' => ':attribute harus berupa angka bulat.',
  46. 'ip' => ':attribute harus berupa alamat IP yang benar.',
  47. 'ipv4' => ':attribute harus berupa alamat IPv4 yang benar.',
  48. 'ipv6' => ':attribute harus berupa alamat IPv6 yang benar.',
  49. 'json' => ':attribute harus berupa string JSON yang benar.',
  50. 'max' => [
  51. 'numeric' => ':attribute tidak boleh lebih dari :max.',
  52. 'file' => ':attribute tidak boleh lebih dari :max kilobyte.',
  53. 'string' => ':attribute tidak boleh lebih dari :max karakter.',
  54. 'array' => ':attribute tidak boleh lebih dari :max item.',
  55. ],
  56. 'mimes' => ':attribute harus berupa berkas: :values.',
  57. 'mimetypes' => ':attribute harus berupa berkas: :values.',
  58. 'min' => [
  59. 'numeric' => ':attribute minimal harus :min.',
  60. 'file' => ':attribute minimal harus :min kilobyte.',
  61. 'string' => ':attribute minimal harus :min karakter.',
  62. 'array' => ':attribute minimal harus berisi :min item.',
  63. ],
  64. 'not_in' => ':attribute yang dipilih tidak benar.',
  65. 'not_regex' => 'Format :attribute tidak benar.',
  66. 'numeric' => ':attribute harus berupa angka.',
  67. 'present' => 'Bagian :attribute harus diisi.',
  68. 'regex' => 'Format :attribute tidak benar.',
  69. 'required' => 'Bagian :attribute harus diisi.',
  70. 'required_if' => 'Bagian :attribute harus diisi jika :other :value.',
  71. 'required_unless' => 'Bagian :attribute harus diisi kecuali jika :other :values.',
  72. 'required_with' => 'Bagian :attribute harus diisi jika ada :values.',
  73. 'required_with_all' => 'Bagian :attribute harus diisi jika ada :values.',
  74. 'required_without' => 'Bagian :attribute harus diisi jika tidak ada :values.',
  75. 'required_without_all' => 'Bagian :attribute harus diisi jika tidak ada :values.',
  76. 'same' => ':attribute dan :other harus sama.',
  77. 'size' => [
  78. 'numeric' => ':attribute harus :size.',
  79. 'file' => ':attribute harus berukuran :size kilobyte.',
  80. 'string' => ':attribute harus berisi :size karaker.',
  81. 'array' => ':attribute harus berisi :size item.',
  82. ],
  83. 'string' => ':attribute harus berupa string.',
  84. 'timezone' => ':attribute harus berupa zona yang benar.',
  85. 'unique' => ':attribute sudah digunakan.',
  86. 'uploaded' => ':attribute gagal diunggah.',
  87. 'url' => 'Format :attribute tidak benar.',
  88. /*
  89. |--------------------------------------------------------------------------
  90. | Custom Validation Language Lines
  91. |--------------------------------------------------------------------------
  92. |
  93. | Here you may specify custom validation messages for attributes using the
  94. | convention "attribute.rule" to name the lines. This makes it quick to
  95. | specify a specific custom language line for a given attribute rule.
  96. |
  97. */
  98. 'custom' => [
  99. 'attribute-name' => [
  100. 'rule-name' => 'custom-message',
  101. ],
  102. ],
  103. /*
  104. |--------------------------------------------------------------------------
  105. | Custom Validation Attributes
  106. |--------------------------------------------------------------------------
  107. |
  108. | The following language lines are used to swap attribute place-holders
  109. | with something more reader friendly such as E-Mail Address instead
  110. | of "email". This simply helps us make messages a little cleaner.
  111. |
  112. */
  113. 'attributes' => [],
  114. ];