validation.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Validation Language Lines
  5. |--------------------------------------------------------------------------
  6. |
  7. | The following language lines contain the default error messages used by
  8. | the validator class. Some of these rules have multiple versions such
  9. | as the size rules. Feel free to tweak each of these messages here.
  10. |
  11. */
  12. return [
  13. 'accepted' => 'Rhaid derbyn :attribute.',
  14. 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
  15. 'active_url' => 'Nid yw :attribute yn URL dilys.',
  16. 'after' => 'Rhaid i :attribute fod yn ddyddiad sydd ar ôl :date.',
  17. 'after_or_equal' => 'Y :attribute rhaid iddo fod yn ddyddiad ar ôl neu yn hafal i :date.',
  18. 'alpha' => 'Dim ond llythrennau\'n unig gall :attribute gynnwys.',
  19. 'alpha_dash' => 'Dim ond llythrennau, rhifau a dash yn unig gall :attribute gynnwys.',
  20. 'alpha_num' => 'Dim ond llythrennau a rhifau yn unig gall :attribute gynnwys.',
  21. 'array' => 'Rhaid i :attribute fod yn array.',
  22. 'attached' => 'Mae hyn yn :attribute eisoes ynghlwm.',
  23. 'before' => 'Rhaid i :attribute fod yn ddyddiad sydd cyn :date.',
  24. 'before_or_equal' => 'Y :attribute rhaid iddo fod yn ddyddiad cyn neu yn hafal i :date.',
  25. 'between' => [
  26. 'array' => 'Rhaid i :attribute fod rhwng :min a :max eitem.',
  27. 'file' => 'Rhaid i :attribute fod rhwng :min a :max kilobytes.',
  28. 'numeric' => 'Rhaid i :attribute fod rhwng :min a :max.',
  29. 'string' => 'Rhaid i :attribute fod rhwng :min a :max nodyn.',
  30. ],
  31. 'boolean' => 'Rhaid i\'r maes :attribute fod yn wir neu gau.',
  32. 'confirmed' => 'Nid yw\'r cadarnhad :attribute yn gyfwerth.',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => 'Nid yw :attribute yn ddyddiad dilys.',
  35. 'date_equals' => 'Y :attribute rhaid dyddiad cyfartal i :date.',
  36. 'date_format' => 'Nid yw :attribute yn y fformat :format.',
  37. 'declined' => 'The :attribute must be declined.',
  38. 'declined_if' => 'The :attribute must be declined when :other is :value.',
  39. 'different' => 'Rhaid i :attribute a :other fod yn wahanol.',
  40. 'digits' => 'Rhaid i :attribute fod yn :digits digid.',
  41. 'digits_between' => 'Rhaid i :attribute fod rhwng :min a :max digid.',
  42. 'dimensions' => 'Y :attribute wedi annilys ddelwedd dimensiynau.',
  43. 'distinct' => 'Y :attribute maes wedi dyblyg gwerth.',
  44. 'email' => 'Rhaid i :attribute fod yn gyfeiriad ebost dilys.',
  45. 'ends_with' => 'Y :attribute rhaid i ben gydag un o\'r canlynol: :values.',
  46. 'exists' => 'Nid yw :attribute yn ddilys.',
  47. 'file' => ':attribute rhaid iddo fod yn y ffeil.',
  48. 'filled' => 'Rhaid cynnwys :attribute.',
  49. 'gt' => [
  50. 'array' => 'The :attribute must have more than :value items.',
  51. 'file' => 'The :attribute must be greater than :value kilobytes.',
  52. 'numeric' => 'The :attribute must be greater than :value.',
  53. 'string' => 'The :attribute must be greater than :value characters.',
  54. ],
  55. 'gte' => [
  56. 'array' => 'The :attribute must have :value items or more.',
  57. 'file' => 'The :attribute must be greater than or equal :value kilobytes.',
  58. 'numeric' => 'The :attribute must be greater than or equal :value.',
  59. 'string' => 'The :attribute must be greater than or equal :value characters.',
  60. ],
  61. 'image' => 'Rhaid i :attribute fod yn lun.',
  62. 'in' => 'Nid yw :attribute yn ddilys.',
  63. 'in_array' => 'Y :attribute maes nad yw\'n bodoli yn :other.',
  64. 'integer' => 'Rhaid i :attribute fod yn integer.',
  65. 'ip' => 'Rhaid i :attribute fod yn gyfeiriad IP dilys.',
  66. 'ipv4' => 'Y :attribute rhaid iddo fod yn ddilys ar IPv4 cyfeiriad.',
  67. 'ipv6' => 'Y :attribute rhaid iddo fod yn ddilys cyfeiriad IPv6.',
  68. 'json' => 'Y :attribute rhaid iddo fod yn ddilys JSON llinyn.',
  69. 'lt' => [
  70. 'array' => 'The :attribute must have less than :value items.',
  71. 'file' => 'The :attribute must be less than :value kilobytes.',
  72. 'numeric' => 'The :attribute must be less than :value.',
  73. 'string' => 'The :attribute must be less than :value characters.',
  74. ],
  75. 'lte' => [
  76. 'array' => 'The :attribute must not have more than :value items.',
  77. 'file' => 'The :attribute must be less than or equal :value kilobytes.',
  78. 'numeric' => 'The :attribute must be less than or equal :value.',
  79. 'string' => 'The :attribute must be less than or equal :value characters.',
  80. ],
  81. 'max' => [
  82. 'array' => 'Ni chai :attribute fod yn fwy na :max eitem.',
  83. 'file' => 'Ni chai :attribute fod yn fwy na :max kilobytes.',
  84. 'numeric' => 'Ni chai :attribute fod yn fwy na :max.',
  85. 'string' => 'Ni chai :attribute fod yn fwy na :max nodyn.',
  86. ],
  87. 'mimes' => 'Rhaid i :attribute fod yn ffeil o\'r math: :values.',
  88. 'mimetypes' => 'Rhaid i :attribute fod yn ffeil o\'r math: :values.',
  89. 'min' => [
  90. 'array' => 'Rhaid i :attribute fod o leiaf :min eitem.',
  91. 'file' => 'Rhaid i :attribute fod o leiaf :min kilobytes.',
  92. 'numeric' => 'Rhaid i :attribute fod o leiaf :min.',
  93. 'string' => 'Rhaid i :attribute fod o leiaf :min nodyn.',
  94. ],
  95. 'multiple_of' => 'Y :attribute rhaid iddo fod yn lluosrif o :value',
  96. 'not_in' => 'Nid yw :attribute yn ddilys.',
  97. 'not_regex' => 'Y :attribute fformat annilys.',
  98. 'numeric' => 'Rhaid i :attribute fod yn rif.',
  99. 'password' => 'Mae\'r cyfrinair yn anghywir.',
  100. 'present' => 'Y :attribute maes rhaid i fod yn bresennol.',
  101. 'prohibited' => 'Y :attribute maes yn cael ei wahardd.',
  102. 'prohibited_if' => 'Y :attribute maes yn cael ei wahardd pan :other yn :value.',
  103. 'prohibited_unless' => 'Y :attribute maes yn cael ei wahardd oni bai :other yn :values.',
  104. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  105. 'regex' => 'Nid yw fformat :attribute yn ddilys.',
  106. 'relatable' => 'Mae hyn yn :attribute efallai na fod yn gysylltiedig â\'r adnodd hwn.',
  107. 'required' => 'Rhaid cynnwys :attribute.',
  108. 'required_if' => 'Rhaid cynnwys :attribute pan mae :other yn :value.',
  109. 'required_unless' => 'Y :attribute maes yn ofynnol oni bai bod :other yn :values.',
  110. 'required_with' => 'Rhaid cynnwys :attribute pan mae :values yn bresennol.',
  111. 'required_with_all' => 'Rhaid cynnwys :attribute pan mae :values yn bresennol.',
  112. 'required_without' => 'Rhaid cynnwys :attribute pan nad oes :values yn bresennol.',
  113. 'required_without_all' => 'Rhaid cynnwys :attribute pan nad oes :values yn bresennol.',
  114. 'same' => 'Rhaid i :attribute a :other fod yn gyfwerth.',
  115. 'size' => [
  116. 'array' => 'Rhaid i :attribute fod yn :size eitem.',
  117. 'file' => 'Rhaid i :attribute fod yn :size kilobytes.',
  118. 'numeric' => 'Rhaid i :attribute fod yn :size.',
  119. 'string' => 'Rhaid i :attribute fod yn :size nodyn.',
  120. ],
  121. 'starts_with' => 'Y :attribute rhaid dechrau gydag un o\'r canlynol: :values.',
  122. 'string' => 'Y :attribute rhaid iddo fod yn llinyn.',
  123. 'timezone' => 'Rhaid i :attribute fod yn timezone dilys.',
  124. 'unique' => 'Mae :attribute eisoes yn bodoli.',
  125. 'uploaded' => 'Y :attribute wedi methu â llwytho i fyny.',
  126. 'url' => 'Nid yw fformat :attribute yn ddilys.',
  127. 'uuid' => 'Y :attribute rhaid iddo fod yn ddilys UUID.',
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. ];