Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validation.php with 100 percent accuracy. #1497

Merged
merged 1 commit into from Jan 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
91 changes: 46 additions & 45 deletions src/ka/validation.php
@@ -1,6 +1,7 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Validation Language Lines
Expand All @@ -13,41 +14,41 @@
*/

'accepted' => ':attribute უნდა იყოს მონიშნული.',
'active_url' => ':attribute უნდა იყოს URL მისამართი.',
'after' => ':attribute უნდა იყოს :date-ის შემდეგ.',
'after_or_equal' => ':attribute უნდა იყოს :date-ის შემდეგ ან მისი ტოლი.',
'active_url' => ':attribute არ არის სწორი URL მისამართი.',
'after' => ':attribute უნდა იყოს თარიღი :date-ის შემდეგ.',
'after_or_equal' => ':attribute უნდა იყოს თარიღი :date-ის შემდეგ ან მისი ტოლი.',
'alpha' => ':attribute უნდა შეიცავდეს მხოლოდ ასოებს.',
'alpha_dash' => ':attribute უნდა შეიცავდეს მხოლოდ ასოებს, რიცხვებს და ტირეებს.',
'alpha_dash' => ':attribute უნდა შეიცავდეს მხოლოდ ასოებს, რიცხვებს, ტირეებს და ქვეტირეებს.',
'alpha_num' => ':attribute უნდა შეიცავდეს მხოლოდ ასოებს და რიცხვებს.',
'array' => ':attribute უნდა იყოს მასივი.',
'before' => ':attribute უნდა იყოს :date-მდე.',
'before_or_equal' => ':attribute უნდა იყოს :date-მდე ან მისი ტოლი.',
'before' => ':attribute უნდა იყოს თარიღი :date-მდე.',
'before_or_equal' => ':attribute უნდა იყოს თარიღი :date-მდე ან მისი ტოლი.',
'between' => [
'numeric' => ':attribute უნდა იყოს :min-სა და :max-ს შორის.',
'file' => ':attribute უნდა იყოს :min-სა და :max კილობაიტს შორის.',
'string' => ':attribute უნდა იყოს :min-სა და :max სიმბოლოს შორის.',
'array' => ':attribute-ის რაოდენობა უნდა იყოს :min-დან :max-მდე.',
],
'boolean' => ':attribute უნდა იყოს true, false, 0 ან 1.',
'confirmed' => ':attribute არ ემთხვევა დადასტურებას.',
'boolean' => ':attribute ველი უნდა იყოს true ან false.',
'confirmed' => ':attribute-ის დადასტურება არ ემთხვევა.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:attribute-ის it's working ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, of course.

regex

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it on regex and :attribute-ის is correct and it's working properly.

'date' => ':attribute შეიცავს თარიღის არასწორ ფორმატს.',
'date_equals' => ':attribute თარიღი უნდა იყოს :date.',
'date_equals' => ':attribute უნდა იყოს :date-ის ტოლი თარიღი.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's working properly.

'date_format' => ':attribute არ ემთხვევა თარიღის ფორმატს: :format.',
'different' => ':attribute და :other არ უნდა ემთხვეოდეს ერთმანეთს.',
'digits' => ':attribute უნდა შედგებოდეს :digits ციფრისგან.',
'digits_between' => ':attribute უნდა შედგებოდეს :min-დან :max ციფრამბდე.',
'dimensions' => ':attribute შეიცავს სურათის არასწორ ზომებს.',
'distinct' => ':attribute უნდა იყოს უნიკალური.',
'distinct' => ':attribute-ის ველს აქვს დუბლირებული მნიშვნელობა.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's working properly.

'email' => ':attribute უნდა იყოს სწორი ელ.ფოსტა.',
'ends_with' => ':attribute დაბოლოება უნდა იყოს: :values.',
'exists' => 'ასეთი :attribute არ არსებობს.',
'ends_with' => ':attribute უნდა ბოლოვდებოდეს შემდეგიდან ერთ-ერთით: :values.',
'exists' => 'არჩეული :attribute არასწორია.',
'file' => ':attribute უნდა იყოს ფაილი.',
'filled' => ':attribute აუცილებელია.',
'gt' => [
'numeric' => ':attribute უნდა იყოს :value-ზე მეტი.',
'file' => ':attribute უნდა იყოს :value კილობაიტზე მეტი.',
'string' => ':attribute უნდა შეიცავდეს :value სიმბოლოზე მეტს.',
'array' => ':attribute უნდა შეიცავლდეს :value ელემენტზე მეტს.',
'array' => ':attribute უნდა შეიცავდეს :value ელემენტზე მეტს.',
],
'gte' => [
'numeric' => ':attribute უნდა იყოს მინიმუმ :value.',
Expand All @@ -56,18 +57,18 @@
'array' => ':attribute უნდა შეიცავდეს მინიმუმ :value ელემენტს.',
],
'image' => ':attribute უნდა იყოს სურათი.',
'in' => 'მითითებული :attribute არასწორია.',
'in_array' => ':attribute უნდა არსებობდეს :other-ში.',
'in' => 'არჩეული :attribute არასწორია.',
'in_array' => ':attribute ველი არ არსებობს :other-ში.',
'integer' => ':attribute უნდა იყოს მთელი რიცხვი.',
'ip' => ':attribute უნდა იყოს IP მისამართი.',
'ipv4' => ':attribute უნდა იყოს IPv4 მისამართი.',
'ipv6' => ':attribute უნდა იყოს IPv6 მისამართი.',
'json' => ':attribute უნდა იყოს JSON ტიპის.',
'ip' => ':attribute უნდა იყოს ვალიდური IP მისამართი.',
'ipv4' => ':attribute უნდა იყოს ვალიდური IPv4 მისამართი.',
'ipv6' => ':attribute უნდა იყოს ვალიდური IPv6 მისამართი.',
'json' => ':attribute უნდა იყოს სწორი JSON ტიპის.',
'lt' => [
'numeric' => ':attribute უნდა იყოს :value-ზე ნაკლები.',
'file' => ':attribute უნდა იყოს :value კილობაიტზე ნაკლები.',
'string' => ':attribute უნდა შეიცავდეს :value სიმბოლოზე ნაკლებს.',
'array' => ':attribute უნდა შეიცავლდეს :value ელემენტზე ნაკლებს.',
'array' => ':attribute უნდა შეიცავდეს :value ელემენტზე ნაკლებს.',
],
'lte' => [
'numeric' => ':attribute უნდა იყოს მაქსიმუმ :value.',
Expand All @@ -79,43 +80,43 @@
'numeric' => ':attribute არ უნდა აღემატებოდეს :max-ს.',
'file' => ':attribute არ უნდა აღემატებოდეს :max კილობაიტს.',
'string' => ':attribute არ უნდა აღემატებოდეს :max სიმბოლოს.',
'array' => ':attribute-ის რაოდენობა არ უნდა აღემატებოდეს :max-ს.',
'array' => ':attribute-არ უნდა ჰქონდეს :max ელემენტზე მეტი.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's working properly

],
'mimes' => ':attribute უნდა იყოს შემდეგი ტიპის: :values.',
'mimetypes' => ':attribute უნდა იყოს შემდეგი ტიპის: :values.',
'mimes' => ':attribute უნდა იყოს შემდეგი ფაილური ტიპის: :values.',
'mimetypes' => ':attribute უნდა იყოს შემდეგი ფაილური ტიპის: :values.',
'min' => [
'numeric' => ':attribute უნდა იყოს მინიმუმ :min.',
'file' => ':attribute უნდა იყოს მინიმუმ :min კილობაიტი.',
'string' => ':attribute უნდა შეიცავდეს მინიმუმ :min სიმბოლოს.',
'array' => ':attribute უნდა იყოს მინიმუმ :min.',
'array' => ':attribute-ს უნდა ჰქონდეს მინიმუმ :min ელემენტი.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's working properly

],
'multiple_of' => 'The :attribute must be a multiple of :value',
'not_in' => 'მითითებული :attribute არასწორია.',
'not_regex' => ':attribute არასწორ ფორმატშია.',
'multiple_of' => ':attribute უნდა იყოს :value-ს ჯერადი',
'not_in' => 'არჩეული :attribute არასწორია.',
'not_regex' => ':attribute-ის ფორმატი არასწორია.',
'numeric' => ':attribute უნდა იყოს რიცხვი.',
'password' => 'The password is incorrect.',
'present' => ':attribute უნდა არსებობდეს, თუნდაც ცარიელი.',
'regex' => ':attribute არ ემთხვევა ფორმატს.',
'required' => ':attribute აუცილებელია.',
'required_if' => ':attribute აუცილებელია, თუ :other-ის მნიშვნელობა ემთხვევა :value-ს.',
'required_unless' => ':attribute აუცილებელია, თუ :values არ შეიცავს :other-ს.',
'required_with' => ':attribute აუცილებელია, თუ :values მითითებულია.',
'required_with_all' => ':attribute აუცილებელია, თუ :values მითითებულია.',
'required_without' => ':attribute აუცილებელია, თუ :values არ არის მითითებული.',
'required_without_all' => ':attribute აუცილებელია, თუ :values არ არის მითითებული.',
'password' => 'პაროლი არასწორია.',
'present' => ':attribute-ის ველი უნდა არსებობდეს, თუნდაც ცარიელი.',
'regex' => ':attribute-ის ფორმატი არასწორია.',
'required' => ':attribute-ის ველი აუცილებელია.',
'required_if' => ':attribute-ის ველი აუცილებელია, თუ :other-ის მნიშვნელობა ემთხვევა :value-ს.',
'required_unless' => ':attribute-ის ველი აუცილებელია, თუ :values არ შეიცავს :other-ს.',
'required_with' => ':attribute-ის ველი აუცილებელია, თუ :values მითითებულია.',
'required_with_all' => ':attribute-ის ველი აუცილებელია, თუ :values მითითებულია.',
'required_without' => ':attribute-ის ველი აუცილებელია, თუ :values არ არის მითითებული.',
'required_without_all' => ':attribute-ის ველი აუცილებელია, თუ არცერთი :values არ არის მითითებული.',
'same' => ':attribute და :other უნდა ემთხვეოდეს ერთმანეთს.',
'size' => [
'numeric' => ':attribute უნდა იყოს :size-ის ტოლი.',
'numeric' => ':attribute უნდა იყოს :size.',
'file' => ':attribute უნდა იყოს :size კილობაიტი.',
'string' => ':attribute უნდა შედგებოდეს :size სიმბოლოსგან.',
'array' => ':attribute უნდა შეიცავდეს :size ელემენტს.',
],
'starts_with' => ':attribute დასაწყისი უნდა იყოს: :values.',
'starts_with' => ':attribute უნდა იწყებოდეს შემდეგიდან ერთ-ერთით: :values.',
'string' => ':attribute უნდა იყოს ტექსტი.',
'timezone' => ':attribute უნდა იყოს სასაათო სარტყელი.',
'unique' => 'ასეთი :attribute უკვე არსებობს.',
'uploaded' => ':attribute-ის ატვირთვა ვერ მოხერხდა.',
'url' => ':attribute უნდა იყოს URL მისამართი.',
'url' => ':attribute-ის ფორმატი არასწორია.',
'uuid' => ':attribute უნდა იყოს ვალიდური UUID.',

/*
Expand All @@ -140,12 +141,12 @@
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/

'attributes' => [
],
'attributes' => [],

];