validation.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 haruslah diterima.',
  14. 'active_url' => ':attribute bukan URL yang sah.',
  15. 'after' => ':attribute tarikh mestilah selepas :date.',
  16. 'after_or_equal' => ':attribute mestilah tarikh selepas atau sama dengan :date.',
  17. 'alpha' => ':attribute mesti mempunyai abjad sahaja.',
  18. 'alpha_dash' => ':attribute mesti mempunyai abjad, nombor, dan sengkang sahaja.',
  19. 'alpha_num' => ':attribute mesti mempunyai abjad dan nombor sahaja.',
  20. 'array' => ':attribute mestilah lokasi.',
  21. 'before' => ':attribute mestilah tarikh sebelum :date.',
  22. 'before_or_equal' => ':attribute mestilah tarikh sebelum atau sama dengan :date.',
  23. 'between' => [
  24. 'numeric' => ':attribute mestilah antara :min dan :max.',
  25. 'file' => ':attribute mestilah antara :min dan :max kilobytes.',
  26. 'string' => ':attribute mestilah antara :min dan :max perkataan.',
  27. 'array' => ':attribute mestilah antara :min dan :max item.',
  28. ],
  29. 'boolean' => ':attribute mestilah ruang betul atau salah.',
  30. 'confirmed' => ':attribute pengesahan tidak sepadan.',
  31. 'date' => ':attribute bukan tarikh yang sah.',
  32. 'date_format' => ':attribute tidak sepadan dengan format :format.',
  33. 'different' => ':attribute dan :other mestilah berbeza.',
  34. 'digits' => ':attribute mestilah :digits digit.',
  35. 'digits_between' => ':attribute mestilah antara :min dan :max digit.',
  36. 'dimensions' => ':attribute mempunyai dimensi imej yang tidak sah.',
  37. 'distinct' => ':attribute ruang mempunyai nilai pendua.',
  38. 'email' => ':attribute mestilah alamat emel yang sah.',
  39. 'exists' => ':attribute yang dipilih tidak sah.',
  40. 'file' => ':attribute mestilah sebuah fail.',
  41. 'filled' => ':attribute ruang mestilah mempunyai nilai.',
  42. 'image' => ':attribute mestilah imej.',
  43. 'in' => ':attribute yang di pilih tidak sah.',
  44. 'in_array' => ':attribute ruang tidak wujud dalam :other.',
  45. 'integer' => ':attribute mestilah integer.',
  46. 'ip' => ':attribute mestilah alamat IP yang sah.',
  47. 'ipv4' => ':attribute mestilah alamat IPv4 yang sah.',
  48. 'ipv6' => ':attribute mestilah alamat IPv6 yang sah.',
  49. 'json' => ':attribute mestilah rentetan JSON yang sah.',
  50. 'max' => [
  51. 'numeric' => ':attribute mesti tidak besar daripada :max.',
  52. 'file' => ':attribute mesti tidak besar daripada :max kilobytes.',
  53. 'string' => ':attribute mesti tidak besar daripada :max perkataan.',
  54. 'array' => ':attribute mesti tidak lebih daripada :max item.',
  55. ],
  56. 'mimes' => ':attribute mestilah mempunyai jenis file: :values.',
  57. 'mimetypes' => ':attribute mestilah mempunyai jenis file: :values.',
  58. 'min' => [
  59. 'numeric' => ':attribute mesti sekurang-kurangnya :min.',
  60. 'file' => ':attribute mesti sekurang-kurangnya :min kilobytes.',
  61. 'string' => ':attribute mesti sekurang-kurangnya :min perkataan.',
  62. 'array' => ':attribute mesti mempunyai sekurang-kurangnya :min item.',
  63. ],
  64. 'not_in' => ':attribute yang di pilih tidak sah.',
  65. 'not_regex' => ':attribute adalah format tidak sah.',
  66. 'numeric' => ':attribute mestilah nombor.',
  67. 'present' => ':attribute ruang mesti ada.',
  68. 'regex' => ':attribute adalah format tidak sah.',
  69. 'required' => ':attribute ruang diperlukan.',
  70. 'required_if' => ':attribute ruang diperlukan bila :other adalah :value.',
  71. 'required_unless' => ':attribute ruang diperlukan kecuali jika :other ada dalam :values.',
  72. 'required_with' => 'The :attribute ruang diperlukan bila :values wujud.',
  73. 'required_with_all' => 'The :attribute ruang diperlukan bila :values wujud.',
  74. 'required_without' => 'The :attribute ruang diperlukan bila :values tidak wujud.',
  75. 'required_without_all' => 'The :attribute ruang diperlukan bila tiada daripada :values wujud.',
  76. 'same' => ':attribute dan :other mestilah sepadan.',
  77. 'size' => [
  78. 'numeric' => ':attribute mesilah :size.',
  79. 'file' => ':attribute mestilah :size kilobytes.',
  80. 'string' => ':attribute mestilah :size perkataan.',
  81. 'array' => ':attribute mesti mempunyai :size item.',
  82. ],
  83. 'string' => ':attribute mestilah rentetan.',
  84. 'timezone' => ':attribute mesti zon waktu yang sah.',
  85. 'unique' => ':attribute telah diambil.',
  86. 'uploaded' => ':attribute gagal dimuat naik.',
  87. 'url' => ':attribute adalah format tidak sah.',
  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. ];