From 4cd7c060d02c08514a9494a50dc008e887161695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20A=C5=9Fan?= Date: Wed, 24 Mar 2021 22:53:06 +0300 Subject: [PATCH 1/6] Update validation.php --- src/tr/validation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tr/validation.php b/src/tr/validation.php index dab62154f6b..b860d1560c5 100644 --- a/src/tr/validation.php +++ b/src/tr/validation.php @@ -94,6 +94,9 @@ 'required_with_all' => ':attribute herhangi bir :values değeri varken mutlaka gereklidir.', 'required_without' => ':attribute :values yokken mutlaka gereklidir.', 'required_without_all' => ':attribute :values değerlerinden herhangi biri yokken mutlaka gereklidir.', + 'prohibited' => ':attribute alanı kısıtlanmıştır.', + 'prohibited_if' => ':other alanının değeri :value olduğunda :attribute alanına veri girişi yapılamaz.', + 'prohibited_unless' => ':other alanı :value değerlerinin dışında olduğunda :attribute alanına veri girişi yapılamaz.', 'same' => ':attribute ile :other eşleşmelidir.', 'size' => [ 'array' => ':attribute mutlaka :size öğeye sahip olmalıdır.', From 49a8959766473b609d56f8ba6f169dd04dedf18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20A=C5=9Fan?= Date: Fri, 26 Mar 2021 01:35:17 +0300 Subject: [PATCH 2/6] added: prohibited validation rules --- script/en/validation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/en/validation.php b/script/en/validation.php index 675d84d5f23..7fd82e3d902 100644 --- a/script/en/validation.php +++ b/script/en/validation.php @@ -105,6 +105,9 @@ 'required_with_all' => 'The :attribute field is required when :values are present.', 'required_without' => 'The :attribute field is required when :values is not present.', 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless'. => 'The :attribute field is prohibited unless :other is in :values.', 'same' => 'The :attribute and :other must match.', 'size' => [ 'numeric' => 'The :attribute must be :size.', From 48cb762e7361e5343e4fc0d7168bf0121ef9a5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20A=C5=9Fan?= Date: Fri, 26 Mar 2021 01:37:05 +0300 Subject: [PATCH 3/6] added: prohibited validation rules --- script/en/validation-inline.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/en/validation-inline.php b/script/en/validation-inline.php index d7cb47f5c50..5c05ddddf25 100644 --- a/script/en/validation-inline.php +++ b/script/en/validation-inline.php @@ -107,6 +107,9 @@ 'required_without' => 'This field is required when :values is not present.', 'required_without_all' => 'This field is required when none of :values are present.', 'same' => 'The value of this field must match the one from :other.', + 'prohibited' => 'This field is prohibited.', + 'prohibited_if' => 'This field is prohibited when :other is :value.', + 'prohibited_unless' => 'This field is prohibited unless :other is in :values.', 'size' => [ 'numeric' => 'The value must be :size.', 'file' => 'The file size must be :size kilobytes.', From 0e81c81235d42152a0518570a19e1ac855b6810e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20A=C5=9Fan?= Date: Fri, 26 Mar 2021 01:39:06 +0300 Subject: [PATCH 4/6] added: prohibited validation rules --- src/tr/validation-inline.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tr/validation-inline.php b/src/tr/validation-inline.php index 6a403bd0450..fe9550ac07d 100644 --- a/src/tr/validation-inline.php +++ b/src/tr/validation-inline.php @@ -94,6 +94,9 @@ 'required_with_all' => 'This field is required when :values are present.', 'required_without' => 'This field is required when :values is not present.', 'required_without_all' => 'This field is required when none of :values are present.', + 'prohibited' => 'Bu alan kısıtlanmıştır.', + 'prohibited_if' => ':other alanının değeri :value olduğunda bu alana veri girişi yapılamaz.', + 'prohibited_unless' => ':other alanı :value değerlerinin dışında olduğunda bu alana veri girişi yapılamaz.', 'same' => 'The value of this field must match the one from :other.', 'size' => [ 'array' => 'The content must contain :size items.', From 756161d65c1f5215cbf91211e1ac8d5646f0dee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20A=C5=9Fan?= Date: Fri, 26 Mar 2021 01:50:43 +0300 Subject: [PATCH 5/6] reorder --- script/en/validation-inline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/en/validation-inline.php b/script/en/validation-inline.php index 5c05ddddf25..4a4f5b35bcb 100644 --- a/script/en/validation-inline.php +++ b/script/en/validation-inline.php @@ -106,10 +106,10 @@ 'required_with_all' => 'This field is required when :values are present.', 'required_without' => 'This field is required when :values is not present.', 'required_without_all' => 'This field is required when none of :values are present.', - 'same' => 'The value of this field must match the one from :other.', 'prohibited' => 'This field is prohibited.', 'prohibited_if' => 'This field is prohibited when :other is :value.', 'prohibited_unless' => 'This field is prohibited unless :other is in :values.', + 'same' => 'The value of this field must match the one from :other.', 'size' => [ 'numeric' => 'The value must be :size.', 'file' => 'The file size must be :size kilobytes.', From 84224a4fe120656ed24752017469177e8fff0213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20A=C5=9Fan?= Date: Fri, 26 Mar 2021 01:51:24 +0300 Subject: [PATCH 6/6] fix syntax --- script/en/validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/en/validation.php b/script/en/validation.php index 7fd82e3d902..aab6dc06383 100644 --- a/script/en/validation.php +++ b/script/en/validation.php @@ -107,7 +107,7 @@ 'required_without_all' => 'The :attribute field is required when none of :values are present.', 'prohibited' => 'The :attribute field is prohibited.', 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', - 'prohibited_unless'. => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', 'same' => 'The :attribute and :other must match.', 'size' => [ 'numeric' => 'The :attribute must be :size.',