validation.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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 باید پذیرفته شده باشد.',
  14. 'active_url' => 'آدرس :attribute معتبر نیست',
  15. 'after' => ':attribute باید تاریخی بعد از :date باشد.',
  16. 'after_or_equal' => ':attribute باید تاریخی بعد از :date، یا مطابق با آن باشد.',
  17. 'alpha' => ':attribute باید فقط حروف الفبا باشد.',
  18. 'alpha_dash' => ':attribute باید فقط حروف الفبا، عدد و خط تیره(-) باشد.',
  19. 'alpha_num' => ':attribute باید فقط حروف الفبا و عدد باشد.',
  20. 'array' => ':attribute باید آرایه باشد.',
  21. 'before' => ':attribute باید تاریخی قبل از :date باشد.',
  22. 'before_or_equal' => ':attribute باید تاریخی قبل از :date، یا مطابق با آن باشد.',
  23. 'between' => [
  24. 'numeric' => ':attribute باید بین :min و :max باشد.',
  25. 'file' => ':attribute باید بین :min و :max کیلوبایت باشد.',
  26. 'string' => ':attribute باید بین :min و :max کاراکتر باشد.',
  27. 'array' => ':attribute باید بین :min و :max آیتم باشد.',
  28. ],
  29. 'boolean' => 'فیلد :attribute فقط می‌تواند صحیح و یا غلط باشد',
  30. 'confirmed' => ':attribute با فیلد تکرار مطابقت ندارد.',
  31. 'date' => ':attribute یک تاریخ معتبر نیست.',
  32. 'date_format' => ':attribute با الگوی :format مطاقبت ندارد.',
  33. 'different' => ':attribute و :other باید متفاوت باشند.',
  34. 'digits' => ':attribute باید :digits رقم باشد.',
  35. 'digits_between' => ':attribute باید بین :min و :max رقم باشد.',
  36. 'dimensions' => 'ابعاد تصویر :attribute قابل قبول نیست.',
  37. 'distinct' => 'فیلد :attribute تکراری است.',
  38. 'email' => ':attribute باید یک ایمیل معتبر باشد',
  39. 'exists' => ':attribute انتخاب شده، معتبر نیست.',
  40. 'file' => ':attribute باید یک فایل باشد',
  41. 'filled' => 'فیلد :attribute الزامی است',
  42. 'image' => ':attribute باید تصویر باشد.',
  43. 'in' => ':attribute انتخاب شده، معتبر نیست.',
  44. 'in_array' => 'فیلد :attribute در :other وجود ندارد.',
  45. 'integer' => ':attribute باید عدد صحیح باشد.',
  46. 'ip' => ':attribute باید IP معتبر باشد.',
  47. 'ipv4' => ':attribute باید یک آدرس معتبر از نوع IPv4 باشد.',
  48. 'ipv6' => ':attribute باید یک آدرس معتبر از نوع IPv6 باشد.',
  49. 'json' => 'فیلد :attribute باید یک رشته از نوع JSON باشد.',
  50. 'max' => [
  51. 'numeric' => ':attribute نباید بزرگتر از :max باشد.',
  52. 'file' => ':attribute نباید بزرگتر از :max کیلوبایت باشد.',
  53. 'string' => ':attribute نباید بیشتر از :max کاراکتر باشد.',
  54. 'array' => ':attribute نباید بیشتر از :max آیتم باشد.',
  55. ],
  56. 'mimes' => ':attribute باید یکی از فرمت های :values باشد.',
  57. 'mimetypes' => ':attribute باید یکی از فرمت های :values باشد.',
  58. 'min' => [
  59. 'numeric' => ':attribute نباید کوچکتر از :min باشد.',
  60. 'file' => ':attribute نباید کوچکتر از :min کیلوبایت باشد.',
  61. 'string' => ':attribute نباید کمتر از :min کاراکتر باشد.',
  62. 'array' => ':attribute نباید کمتر از :min آیتم باشد.',
  63. ],
  64. 'not_in' => ':attribute انتخاب شده، معتبر نیست.',
  65. 'not_regex' => ':attribute نامعتبر است.',
  66. 'numeric' => ':attribute باید عدد باشد.',
  67. 'present' => 'فیلد :attribute باید در پارامترهای ارسالی وجود داشته باشد.',
  68. 'regex' => 'فرمت :attribute معتبر نیست',
  69. 'required' => 'فیلد :attribute الزامی است',
  70. 'required_if' => 'هنگامی که :other برابر با :value است، فیلد :attribute الزامی است.',
  71. 'required_unless' => 'فیلد :attribute ضروری است، مگر آنکه :other در :values موجود باشد.',
  72. 'required_with' => 'در صورت وجود فیلد :values، فیلد :attribute الزامی است.',
  73. 'required_with_all' => 'در صورت وجود فیلدهای :values، فیلد :attribute الزامی است.',
  74. 'required_without' => 'در صورت عدم وجود فیلد :values، فیلد :attribute الزامی است.',
  75. 'required_without_all' => 'در صورت عدم وجود هر یک از فیلدهای :values، فیلد :attribute الزامی است.',
  76. 'same' => ':attribute و :other باید مانند هم باشند.',
  77. 'size' => [
  78. 'numeric' => ':attribute باید برابر با :size باشد.',
  79. 'file' => ':attribute باید برابر با :size کیلوبایت باشد.',
  80. 'string' => ':attribute باید برابر با :size کاراکتر باشد.',
  81. 'array' => ':attribute باسد شامل :size آیتم باشد.',
  82. ],
  83. 'string' => 'فیلد :attribute باید متن باشد.',
  84. 'timezone' => 'فیلد :attribute باید یک منطقه زمانی قابل قبول باشد.',
  85. 'unique' => ':attribute قبلا انتخاب شده است.',
  86. 'uploaded' => 'آپلود فایل :attribute موفقیت آمیز نبود.',
  87. 'url' => 'فرمت آدرس :attribute اشتباه است.',
  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. 'name' => 'نام',
  115. 'username' => 'نام کاربری',
  116. 'email' => 'ایمیل',
  117. 'first_name' => 'نام',
  118. 'last_name' => 'نام خانوادگی',
  119. 'password' => 'رمز عبور',
  120. 'password_confirmation' => 'تکرار رمز عبور',
  121. 'city' => 'شهر',
  122. 'country' => 'کشور',
  123. 'address' => 'نشانی',
  124. 'phone' => 'تلفن',
  125. 'mobile' => 'تلفن همراه',
  126. 'age' => 'سن',
  127. 'sex' => 'جنسیت',
  128. 'gender' => 'جنسیت',
  129. 'day' => 'روز',
  130. 'month' => 'ماه',
  131. 'year' => 'سال',
  132. 'hour' => 'ساعت',
  133. 'minute' => 'دقیقه',
  134. 'second' => 'ثانیه',
  135. 'title' => 'عنوان',
  136. 'text' => 'متن',
  137. 'content' => 'محتوا',
  138. 'description' => 'توضیحات',
  139. 'excerpt' => 'گزیده مطلب',
  140. 'date' => 'تاریخ',
  141. 'time' => 'زمان',
  142. 'available' => 'موجود',
  143. 'size' => 'اندازه',
  144. 'terms' => 'شرایط',
  145. ],
  146. ];