Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
a7c2c254
Commit
a7c2c254
authored
Aug 12, 2012
by
Dayle Rees
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1053 from tobsn/patch-12
added array and array count validation for multi-select input
parents
4b8ba992
43c3c2de
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
269 additions
and
88 deletions
+269
-88
application/language/ar/validation.php
+5
-0
application/language/bg/validation.php
+5
-0
application/language/de/validation.php
+5
-0
application/language/en/validation.php
+5
-0
application/language/fr/validation.php
+5
-0
application/language/he/validation.php
+5
-0
application/language/hu/validation.php
+5
-0
application/language/id/validation.php
+5
-0
application/language/ja/validation.php
+5
-0
application/language/nl/validation.php
+5
-0
application/language/pl/validation.php
+94
-88
application/language/ru/validation.php
+5
-0
laravel/validator.php
+120
-0
No files found.
application/language/ar/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
"القيمة :attribute يمكنها أن تحتوي على أحرف فقط."
,
"alpha"
=>
"القيمة :attribute يمكنها أن تحتوي على أحرف فقط."
,
"alpha_dash"
=>
"القيمة :attribute يمكنها أن تحتوي على أحرف و أرقام و إشارة الناقص فقط."
,
"alpha_dash"
=>
"القيمة :attribute يمكنها أن تحتوي على أحرف و أرقام و إشارة الناقص فقط."
,
"alpha_num"
=>
"القيمة :attribute يمكنها أن تحتوي على أحرف و أرقام فقط."
,
"alpha_num"
=>
"القيمة :attribute يمكنها أن تحتوي على أحرف و أرقام فقط."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"القيمة :attribute يجب أن تكون قبل تاريخ :date."
,
"before"
=>
"القيمة :attribute يجب أن تكون قبل تاريخ :date."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"القيمة :attribute يجب أن تكون بين :min و :max."
,
"numeric"
=>
"القيمة :attribute يجب أن تكون بين :min و :max."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
"النص :attribute يجب أن يكون بطول من :min إلى :max حرف."
,
"string"
=>
"النص :attribute يجب أن يكون بطول من :min إلى :max حرف."
,
),
),
"confirmed"
=>
"القيمة :attribute التأكيدية غير مطابقة."
,
"confirmed"
=>
"القيمة :attribute التأكيدية غير مطابقة."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"القيمتان :attribute و :other يجب أن تختلفان."
,
"different"
=>
"القيمتان :attribute و :other يجب أن تختلفان."
,
"email"
=>
"القيمة :attribute تمثل بريد إلكتروني غير صحيح."
,
"email"
=>
"القيمة :attribute تمثل بريد إلكتروني غير صحيح."
,
"exists"
=>
"القيمة المختارة :attribute غير موجودة."
,
"exists"
=>
"القيمة المختارة :attribute غير موجودة."
,
...
...
application/language/bg/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
"Полето :attribute трябва да съдържа само букви."
,
"alpha"
=>
"Полето :attribute трябва да съдържа само букви."
,
"alpha_dash"
=>
"Полето :attribute трябва да съдържа само букви, цифри, долна черта и тире."
,
"alpha_dash"
=>
"Полето :attribute трябва да съдържа само букви, цифри, долна черта и тире."
,
"alpha_num"
=>
"Полето :attribute трябва да съдържа само букви и цифри."
,
"alpha_num"
=>
"Полето :attribute трябва да съдържа само букви и цифри."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"Полето :attribute трябва да бъде дата преди :date."
,
"before"
=>
"Полето :attribute трябва да бъде дата преди :date."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"Полето :attribute трябва да бъде между :min и :max."
,
"numeric"
=>
"Полето :attribute трябва да бъде между :min и :max."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
"Полето :attribute трябва да бъде между :min и :max знака."
,
"string"
=>
"Полето :attribute трябва да бъде между :min и :max знака."
,
),
),
"confirmed"
=>
"Полето :attribute не е потвърдено."
,
"confirmed"
=>
"Полето :attribute не е потвърдено."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"Полетата :attribute и :other трябва да са различни."
,
"different"
=>
"Полетата :attribute и :other трябва да са различни."
,
"email"
=>
"Полето :attribute е с невалиден формат."
,
"email"
=>
"Полето :attribute е с невалиден формат."
,
"exists"
=>
"Избраната стойност на :attribute вече съществува."
,
"exists"
=>
"Избраната стойност на :attribute вече съществува."
,
...
...
application/language/de/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
":attribute darf nur Buchstaben beinhalten."
,
"alpha"
=>
":attribute darf nur Buchstaben beinhalten."
,
"alpha_dash"
=>
":attribute sollte nur aus Buchstaben, Nummern und Bindestrichen bestehen."
,
"alpha_dash"
=>
":attribute sollte nur aus Buchstaben, Nummern und Bindestrichen bestehen."
,
"alpha_num"
=>
":attribute sollte nur aus Buchstaben und Nummern bestehen."
,
"alpha_num"
=>
":attribute sollte nur aus Buchstaben und Nummern bestehen."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
":attribute muss ein Datum vor dem :date sein."
,
"before"
=>
":attribute muss ein Datum vor dem :date sein."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
":attribute muss zwischen :min und :max liegen."
,
"numeric"
=>
":attribute muss zwischen :min und :max liegen."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
":attribute muss zwischen :min und :max Zeichen lang sein."
,
"string"
=>
":attribute muss zwischen :min und :max Zeichen lang sein."
,
),
),
"confirmed"
=>
":attribute stimmt nicht mit der Bestätigung überein."
,
"confirmed"
=>
":attribute stimmt nicht mit der Bestätigung überein."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
":attribute und :other müssen verschieden sein."
,
"different"
=>
":attribute und :other müssen verschieden sein."
,
"email"
=>
":attribute ist keine gültige Email-Adresse."
,
"email"
=>
":attribute ist keine gültige Email-Adresse."
,
"exists"
=>
"Der gewählte Wert für :attribute ist ungültig."
,
"exists"
=>
"Der gewählte Wert für :attribute ist ungültig."
,
...
...
application/language/en/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
"The :attribute may only contain letters."
,
"alpha"
=>
"The :attribute may only contain letters."
,
"alpha_dash"
=>
"The :attribute may only contain letters, numbers, and dashes."
,
"alpha_dash"
=>
"The :attribute may only contain letters, numbers, and dashes."
,
"alpha_num"
=>
"The :attribute may only contain letters and numbers."
,
"alpha_num"
=>
"The :attribute may only contain letters and numbers."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"The :attribute must be a date before :date."
,
"before"
=>
"The :attribute must be a date before :date."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"The :attribute must be between :min - :max."
,
"numeric"
=>
"The :attribute must be between :min - :max."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
"The :attribute must be between :min - :max characters."
,
"string"
=>
"The :attribute must be between :min - :max characters."
,
),
),
"confirmed"
=>
"The :attribute confirmation does not match."
,
"confirmed"
=>
"The :attribute confirmation does not match."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"The :attribute and :other must be different."
,
"different"
=>
"The :attribute and :other must be different."
,
"email"
=>
"The :attribute format is invalid."
,
"email"
=>
"The :attribute format is invalid."
,
"exists"
=>
"The selected :attribute is invalid."
,
"exists"
=>
"The selected :attribute is invalid."
,
...
...
application/language/fr/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
"Le champ :attribute ne doit contenir que des lettres."
,
"alpha"
=>
"Le champ :attribute ne doit contenir que des lettres."
,
"alpha_dash"
=>
"Le champ :attribute ne doit contenir que des lettres, nombres et des tirets."
,
"alpha_dash"
=>
"Le champ :attribute ne doit contenir que des lettres, nombres et des tirets."
,
"alpha_num"
=>
"Le champ :attribute ne doit contenir que des lettres et nombres."
,
"alpha_num"
=>
"Le champ :attribute ne doit contenir que des lettres et nombres."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"Le champ :attribute doit être une date avant :date."
,
"before"
=>
"Le champ :attribute doit être une date avant :date."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"Le champ :attribute doit être entre :min - :max."
,
"numeric"
=>
"Le champ :attribute doit être entre :min - :max."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
"Le champ :attribute doit être entre :min - :max caractères."
,
"string"
=>
"Le champ :attribute doit être entre :min - :max caractères."
,
),
),
"confirmed"
=>
"Le champ :attribute confirmation est différent."
,
"confirmed"
=>
"Le champ :attribute confirmation est différent."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"Les champ :attribute et :other doivent être différents."
,
"different"
=>
"Les champ :attribute et :other doivent être différents."
,
"email"
=>
"Le format du champ :attribute est invalide."
,
"email"
=>
"Le format du champ :attribute est invalide."
,
"exists"
=>
"Le champ sélectionné :attribute est invalide."
,
"exists"
=>
"Le champ sélectionné :attribute est invalide."
,
...
...
application/language/he/validation.php
View file @
a7c2c254
...
@@ -27,6 +27,7 @@ return array(
...
@@ -27,6 +27,7 @@ return array(
"alpha"
=>
"הערך :attribute יכול להכיל רק אותיות."
,
"alpha"
=>
"הערך :attribute יכול להכיל רק אותיות."
,
"alpha_dash"
=>
"הערך :attribute יכול להכיל רק אותיות, מספרים ומקפים."
,
"alpha_dash"
=>
"הערך :attribute יכול להכיל רק אותיות, מספרים ומקפים."
,
"alpha_num"
=>
"הערך :attribute יכול להכיל רק אותיות ומספרים."
,
"alpha_num"
=>
"הערך :attribute יכול להכיל רק אותיות ומספרים."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"הערך :attribute חייב להכיל תאריך לפני :date."
,
"before"
=>
"הערך :attribute חייב להכיל תאריך לפני :date."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"הערך :attribute חייב להיות בין :min ל-:max."
,
"numeric"
=>
"הערך :attribute חייב להיות בין :min ל-:max."
,
...
@@ -34,6 +35,10 @@ return array(
...
@@ -34,6 +35,10 @@ return array(
"string"
=>
"הערך :attribute חייב להכיל בין :min ל-:max תווים."
,
"string"
=>
"הערך :attribute חייב להכיל בין :min ל-:max תווים."
,
),
),
"confirmed"
=>
"הערכים של :attribute חייבים להיות זהים."
,
"confirmed"
=>
"הערכים של :attribute חייבים להיות זהים."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"הערכים של :attribute ו-:other חייבים להיות שונים."
,
"different"
=>
"הערכים של :attribute ו-:other חייבים להיות שונים."
,
"email"
=>
"הערך :attribute חייב להכיל כתובת אימייל תקינה."
,
"email"
=>
"הערך :attribute חייב להכיל כתובת אימייל תקינה."
,
"exists"
=>
"הערך :attribute לא קיים."
,
"exists"
=>
"הערך :attribute לא קיים."
,
...
...
application/language/hu/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
"A(z) :attribute csak betűket tartalmazhat."
,
"alpha"
=>
"A(z) :attribute csak betűket tartalmazhat."
,
"alpha_dash"
=>
"A(z) :attribute betűket, számokat és kötőjeleket tartalmazhat."
,
"alpha_dash"
=>
"A(z) :attribute betűket, számokat és kötőjeleket tartalmazhat."
,
"alpha_num"
=>
"A(z) :attribute csak betűket és számokat tartalmazhat."
,
"alpha_num"
=>
"A(z) :attribute csak betűket és számokat tartalmazhat."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"A :attribute :date előtti dátum kell legyen."
,
"before"
=>
"A :attribute :date előtti dátum kell legyen."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"A(z) :attribute :min - :max közötti érték kell legyen."
,
"numeric"
=>
"A(z) :attribute :min - :max közötti érték kell legyen."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
"A(z) :attribute :min - :max karakterhossz között kell legyen"
,
"string"
=>
"A(z) :attribute :min - :max karakterhossz között kell legyen"
,
),
),
"confirmed"
=>
"A(z) :attribute megerősítése nem egyezett meg."
,
"confirmed"
=>
"A(z) :attribute megerősítése nem egyezett meg."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"A(z) :attribute és :other különböző kell legyen."
,
"different"
=>
"A(z) :attribute és :other különböző kell legyen."
,
"email"
=>
"A(z) :attribute formátuma nem megfelelő."
,
"email"
=>
"A(z) :attribute formátuma nem megfelelő."
,
"exists"
=>
"A(z) választott :attribute nem megfelelő."
,
"exists"
=>
"A(z) választott :attribute nem megfelelő."
,
...
...
application/language/id/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
"Isian :attribute hanya boleh berisi huruf."
,
"alpha"
=>
"Isian :attribute hanya boleh berisi huruf."
,
"alpha_dash"
=>
"Isian :attribute hanya boleh berisi huruf, angka, dan strip."
,
"alpha_dash"
=>
"Isian :attribute hanya boleh berisi huruf, angka, dan strip."
,
"alpha_num"
=>
"Isian :attribute hanya boleh berisi huruf dan angka."
,
"alpha_num"
=>
"Isian :attribute hanya boleh berisi huruf dan angka."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"Isian :attribute harus tanggal sebelum :date."
,
"before"
=>
"Isian :attribute harus tanggal sebelum :date."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"Isian :attribute harus antara :min - :max."
,
"numeric"
=>
"Isian :attribute harus antara :min - :max."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
"Isian :attribute harus antara :min - :max karakter."
,
"string"
=>
"Isian :attribute harus antara :min - :max karakter."
,
),
),
"confirmed"
=>
"Konfirmasi :attribute tidak cocok."
,
"confirmed"
=>
"Konfirmasi :attribute tidak cocok."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"Isian :attribute dan :other harus berbeda."
,
"different"
=>
"Isian :attribute dan :other harus berbeda."
,
"email"
=>
"Format isian :attribute tidak valid."
,
"email"
=>
"Format isian :attribute tidak valid."
,
"exists"
=>
"Isian :attribute yang dipilih tidak valid."
,
"exists"
=>
"Isian :attribute yang dipilih tidak valid."
,
...
...
application/language/ja/validation.php
View file @
a7c2c254
...
@@ -40,6 +40,7 @@ return array(
...
@@ -40,6 +40,7 @@ return array(
"alpha"
=>
":attributeはアルファベッドのみがご利用できます。"
,
"alpha"
=>
":attributeはアルファベッドのみがご利用できます。"
,
"alpha_dash"
=>
":attributeは英数字とダッシュ(-)及び下線(_)がご利用できます。"
,
"alpha_dash"
=>
":attributeは英数字とダッシュ(-)及び下線(_)がご利用できます。"
,
"alpha_num"
=>
":attributeは英数字がご利用できます。"
,
"alpha_num"
=>
":attributeは英数字がご利用できます。"
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
":attributeには、:date以前の日付をご利用ください。"
,
"before"
=>
":attributeには、:date以前の日付をご利用ください。"
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
":attributeは、:minから、:maxまでの数字をご指定ください。"
,
"numeric"
=>
":attributeは、:minから、:maxまでの数字をご指定ください。"
,
...
@@ -47,6 +48,10 @@ return array(
...
@@ -47,6 +48,10 @@ return array(
"string"
=>
":attributeは、:min文字から:max文字の間でご指定ください。"
,
"string"
=>
":attributeは、:min文字から:max文字の間でご指定ください。"
,
),
),
"confirmed"
=>
":attributeと、確認フィールドとが、一致していません。"
,
"confirmed"
=>
":attributeと、確認フィールドとが、一致していません。"
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
":attributeと:otherには、異なった内容を指定してください。"
,
"different"
=>
":attributeと:otherには、異なった内容を指定してください。"
,
"email"
=>
":attributeには正しいメールアドレスの形式をご指定ください。"
,
"email"
=>
":attributeには正しいメールアドレスの形式をご指定ください。"
,
"exists"
=>
"選択された:attributeは正しくありません。"
,
"exists"
=>
"選択された:attributeは正しくありません。"
,
...
...
application/language/nl/validation.php
View file @
a7c2c254
...
@@ -15,6 +15,7 @@ return array(
...
@@ -15,6 +15,7 @@ return array(
"alpha"
=>
"Het :attribute mag alleen letters bevatten."
,
"alpha"
=>
"Het :attribute mag alleen letters bevatten."
,
"alpha_dash"
=>
"Het :attribute mag alleen letters, nummers, onderstreep(_) en strepen(-) bevatten."
,
"alpha_dash"
=>
"Het :attribute mag alleen letters, nummers, onderstreep(_) en strepen(-) bevatten."
,
"alpha_num"
=>
"Het :attribute mag alleen letters en nummers"
,
"alpha_num"
=>
"Het :attribute mag alleen letters en nummers"
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"Het :attribute moet een datum voor :date zijn."
,
"before"
=>
"Het :attribute moet een datum voor :date zijn."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"Het :attribute moet tussen :min en :max zijn."
,
"numeric"
=>
"Het :attribute moet tussen :min en :max zijn."
,
...
@@ -22,6 +23,10 @@ return array(
...
@@ -22,6 +23,10 @@ return array(
"string"
=>
"Het :attribute moet tussen :min en :max tekens zijn."
,
"string"
=>
"Het :attribute moet tussen :min en :max tekens zijn."
,
),
),
"confirmed"
=>
"Het :attribute bevestiging komt niet overeen."
,
"confirmed"
=>
"Het :attribute bevestiging komt niet overeen."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"Het :attribute en :other moeten verschillend zijn."
,
"different"
=>
"Het :attribute en :other moeten verschillend zijn."
,
"email"
=>
"Het :attribute formaat is ongeldig."
,
"email"
=>
"Het :attribute formaat is ongeldig."
,
"exists"
=>
"Het gekozen :attribute is al ingebruik."
,
"exists"
=>
"Het gekozen :attribute is al ingebruik."
,
...
...
application/language/pl/validation.php
View file @
a7c2c254
...
@@ -2,98 +2,103 @@
...
@@ -2,98 +2,103 @@
return
array
(
return
array
(
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Validation Language Lines
| Validation Language Lines
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
| The following language lines contain the default error messages used
| The following language lines contain the default error messages used
| by the validator class. Some of the rules contain multiple versions,
| by the validator class. Some of the rules contain multiple versions,
| such as the size (max, min, between) rules. These versions are used
| such as the size (max, min, between) rules. These versions are used
| for different input types such as strings and files.
| for different input types such as strings and files.
|
|
| These language lines may be easily changed to provide custom error
| These language lines may be easily changed to provide custom error
| messages in your application. Error messages for custom validation
| messages in your application. Error messages for custom validation
| rules may also be added to this file.
| rules may also be added to this file.
|
|
*/
*/
"accepted"
=>
":attribute musi zostać zaakceptowane."
,
"accepted"
=>
":attribute musi zostać zaakceptowane."
,
"active_url"
=>
":attribute nie jest prawidłowym adresem URL."
,
"active_url"
=>
":attribute nie jest prawidłowym adresem URL."
,
"after"
=>
":attribute musi zawierać datę, która jest po :date."
,
"after"
=>
":attribute musi zawierać datę, która jest po :date."
,
"alpha"
=>
":attribute może zawierać jedynie litery."
,
"alpha"
=>
":attribute może zawierać jedynie litery."
,
"alpha_dash"
=>
":attribute może zawierać jedynie litery, cyfry i myślniki."
,
"alpha_dash"
=>
":attribute może zawierać jedynie litery, cyfry i myślniki."
,
"alpha_num"
=>
":attribute może zawierać jedynie litery i cyfry."
,
"alpha_num"
=>
":attribute może zawierać jedynie litery i cyfry."
,
"before"
=>
":attribute musi zawierać datę, która jest przed :date."
,
"array"
=>
"The :attribute must have selected elements."
,
"between"
=>
array
(
"before"
=>
":attribute musi zawierać datę, która jest przed :date."
,
"numeric"
=>
":ttribute musi mieścić się w granicach :min - :max."
,
"between"
=>
array
(
"file"
=>
":attribute musi mieć :min - :max kilobajtów."
,
"numeric"
=>
":ttribute musi mieścić się w granicach :min - :max."
,
"string"
=>
":attribute musi mieć :min - :max znaków."
,
"file"
=>
":attribute musi mieć :min - :max kilobajtów."
,
),
"string"
=>
":attribute musi mieć :min - :max znaków."
,
"confirmed"
=>
"Potwierdzenie :attribute się nie zgadza."
,
),
"different"
=>
":attribute i :other muszą się od siebie różnić."
,
"confirmed"
=>
"Potwierdzenie :attribute się nie zgadza."
,
"email"
=>
"The :attribute format is invalid."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"exists"
=>
"Zaznaczona opcja :attribute jest nieprawidłowa."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"image"
=>
":attribute musi być obrazkiem."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"in"
=>
"Zaznaczona opcja :attribute jest nieprawidłowa."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"integer"
=>
":attribute musi być liczbą całkowitą."
,
"different"
=>
":attribute i :other muszą się od siebie różnić."
,
"ip"
=>
":attribute musi być prawidłowym adresem IP."
,
"email"
=>
"The :attribute format is invalid."
,
"match"
=>
"Format :attribute jest nieprawidłowy."
,
"exists"
=>
"Zaznaczona opcja :attribute jest nieprawidłowa."
,
"max"
=>
array
(
"image"
=>
":attribute musi być obrazkiem."
,
"numeric"
=>
":attribute musi być poniżej :max."
,
"in"
=>
"Zaznaczona opcja :attribute jest nieprawidłowa."
,
"file"
=>
":attribute musi mieć poniżej :max kilobajtów."
,
"integer"
=>
":attribute musi być liczbą całkowitą."
,
"string"
=>
":attribute musi mieć poniżej :max znaków."
,
"ip"
=>
":attribute musi być prawidłowym adresem IP."
,
),
"match"
=>
"Format :attribute jest nieprawidłowy."
,
"mimes"
=>
":attribute musi być plikiem rodzaju :values."
,
"max"
=>
array
(
"min"
=>
array
(
"numeric"
=>
":attribute musi być poniżej :max."
,
"numeric"
=>
":attribute musi być co najmniej :min."
,
"file"
=>
":attribute musi mieć poniżej :max kilobajtów."
,
"file"
=>
"Plik :attribute musi mieć co najmniej :min kilobajtów."
,
"string"
=>
":attribute musi mieć poniżej :max znaków."
,
"string"
=>
":attribute musi mieć co najmniej :min znaków."
,
),
),
"mimes"
=>
":attribute musi być plikiem rodzaju :values."
,
"not_in"
=>
"Zaznaczona opcja :attribute jest nieprawidłowa."
,
"min"
=>
array
(
"numeric"
=>
":attribute musi być numeryczne."
,
"numeric"
=>
":attribute musi być co najmniej :min."
,
"required"
=>
"Pole :attribute jest wymagane."
,
"file"
=>
"Plik :attribute musi mieć co najmniej :min kilobajtów."
,
"same"
=>
":attribute i :other muszą być takie same."
,
"string"
=>
":attribute musi mieć co najmniej :min znaków."
,
"size"
=>
array
(
),
"numeric"
=>
":attribute musi mieć rozmiary :size."
,
"not_in"
=>
"Zaznaczona opcja :attribute jest nieprawidłowa."
,
"file"
=>
":attribute musi mieć :size kilobajtów."
,
"numeric"
=>
":attribute musi być numeryczne."
,
"string"
=>
":attribute musi mieć :size znaków."
,
"required"
=>
"Pole :attribute jest wymagane."
,
),
"same"
=>
":attribute i :other muszą być takie same."
,
"unique"
=>
":attribute zostało już użyte."
,
"size"
=>
array
(
"url"
=>
"Format pola :attribute jest nieprawidłowy."
,
"numeric"
=>
":attribute musi mieć rozmiary :size."
,
"file"
=>
":attribute musi mieć :size kilobajtów."
,
"string"
=>
":attribute musi mieć :size znaków."
,
),
"unique"
=>
":attribute zostało już użyte."
,
"url"
=>
"Format pola :attribute jest nieprawidłowy."
,
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Custom Validation Language Lines
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
| Here you may specify custom validation messages for attributes using the
| Here you may specify custom validation messages for attributes using the
| convention "attribute_rule" to name the lines. This helps keep your
| convention "attribute_rule" to name the lines. This helps keep your
| custom validation clean and tidy.
| custom validation clean and tidy.
|
|
| So, say you want to use a custom validation message when validating that
| So, say you want to use a custom validation message when validating that
| the "email" attribute is unique. Just add "email_unique" to this array
| the "email" attribute is unique. Just add "email_unique" to this array
| with your custom message. The Validator will handle the rest!
| with your custom message. The Validator will handle the rest!
|
|
*/
*/
'custom'
=>
array
(),
'custom'
=>
array
(),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Validation Attributes
| Validation Attributes
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
| The following language lines are used to swap attribute place-holders
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as "E-Mail Address" instead
| with something more reader friendly such as "E-Mail Address" instead
| of "email". Your users will thank you.
| of "email". Your users will thank you.
|
|
| The Validator class will automatically search this array of lines it
| The Validator class will automatically search this array of lines it
| is attempting to replace the :attribute place-holder in messages.
| is attempting to replace the :attribute place-holder in messages.
| It's pretty slick. We think you'll like it.
| It's pretty slick. We think you'll like it.
|
|
*/
*/
'attributes'
=>
array
(),
'attributes'
=>
array
(),
);
);
\ No newline at end of file
application/language/ru/validation.php
View file @
a7c2c254
...
@@ -24,6 +24,7 @@ return array(
...
@@ -24,6 +24,7 @@ return array(
"alpha"
=>
"Поле :attribute может содержать только буквы."
,
"alpha"
=>
"Поле :attribute может содержать только буквы."
,
"alpha_dash"
=>
"Поле :attribute может содержать только буквы, цифры и тире."
,
"alpha_dash"
=>
"Поле :attribute может содержать только буквы, цифры и тире."
,
"alpha_num"
=>
"Поле :attribute может содержать только буквы и цифры."
,
"alpha_num"
=>
"Поле :attribute может содержать только буквы и цифры."
,
"array"
=>
"The :attribute must have selected elements."
,
"before"
=>
"Поле :attribute должно быть датой перед :date."
,
"before"
=>
"Поле :attribute должно быть датой перед :date."
,
"between"
=>
array
(
"between"
=>
array
(
"numeric"
=>
"Поле :attribute должно быть между :min и :max."
,
"numeric"
=>
"Поле :attribute должно быть между :min и :max."
,
...
@@ -31,6 +32,10 @@ return array(
...
@@ -31,6 +32,10 @@ return array(
"string"
=>
"Поле :attribute должно быть от :min до :max символов."
,
"string"
=>
"Поле :attribute должно быть от :min до :max символов."
,
),
),
"confirmed"
=>
"Поле :attribute не совпадает с подтверждением."
,
"confirmed"
=>
"Поле :attribute не совпадает с подтверждением."
,
"count"
=>
"The :attribute must have exactly :count selected elements."
,
"countbetween"
=>
"The :attribute must have between :min and :max selected elements."
,
"countmax"
=>
"The :attribute must have less than :max selected elements."
,
"countmin"
=>
"The :attribute must have at least :min selected elements."
,
"different"
=>
"Поля :attribute и :other должны различаться."
,
"different"
=>
"Поля :attribute и :other должны различаться."
,
"email"
=>
"Поле :attribute имеет неверный формат."
,
"email"
=>
"Поле :attribute имеет неверный формат."
,
"exists"
=>
"Выбранное значение для :attribute уже существует."
,
"exists"
=>
"Выбранное значение для :attribute уже существует."
,
...
...
laravel/validator.php
View file @
a7c2c254
...
@@ -669,6 +669,70 @@ class Validator {
...
@@ -669,6 +669,70 @@ class Validator {
}
}
/**
/**
* Validate that an attribute is an array
*
* @param string $attribute
* @param mixed $value
* @return bool
*/
protected
function
validate_array
(
$attribute
,
$value
)
{
return
is_array
(
$value
);
}
/**
* Validate that an attribute of type array has a specific count
*
* @param string $attribute
* @param mixed $value
* @param array $parameters
* @return bool
*/
protected
function
validate_count
(
$attribute
,
$value
,
$parameters
)
{
return
(
is_array
(
$value
)
&&
count
(
$value
)
==
$parameters
[
0
]);
}
/**
* Validate that an attribute of type array has a minimum of elements.
*
* @param string $attribute
* @param mixed $value
* @param array $parameters
* @return bool
*/
protected
function
validate_countmin
(
$attribute
,
$value
,
$parameters
)
{
return
(
is_array
(
$value
)
&&
count
(
$value
)
>=
$parameters
[
0
]);
}
/**
* Validate that an attribute of type array has a maximum of elements.
*
* @param string $attribute
* @param mixed $value
* @param array $parameters
* @return bool
*/
protected
function
validate_countmax
(
$attribute
,
$value
,
$parameters
)
{
return
(
is_array
(
$value
)
&&
count
(
$value
)
<=
$parameters
[
0
]);
}
/**
* Validate that an attribute of type array has elements between max and min.
*
* @param string $attribute
* @param mixed $value
* @param array $parameters
* @return bool
*/
protected
function
validate_countbetween
(
$attribute
,
$value
,
$parameters
)
{
return
(
is_array
(
$value
)
&&
count
(
$value
)
>=
$parameters
[
0
]
&&
count
(
$value
)
<=
$parameters
[
1
]
);
}
/**
* Validate the date is before a given date.
* Validate the date is before a given date.
*
*
* @param string $attribute
* @param string $attribute
...
@@ -954,6 +1018,62 @@ class Validator {
...
@@ -954,6 +1018,62 @@ class Validator {
}
}
/**
/**
* Replace all place-holders for the count rule.
*
* @param string $message
* @param string $attribute
* @param string $rule
* @param array $parameters
* @return string
*/
protected
function
replace_count
(
$message
,
$attribute
,
$rule
,
$parameters
)
{
return
str_replace
(
':count'
,
$parameters
[
0
],
$message
);
}
/**
* Replace all place-holders for the countmin rule.
*
* @param string $message
* @param string $attribute
* @param string $rule
* @param array $parameters
* @return string
*/
protected
function
replace_countmin
(
$message
,
$attribute
,
$rule
,
$parameters
)
{
return
str_replace
(
':min'
,
$parameters
[
0
],
$message
);
}
/**
* Replace all place-holders for the countmax rule.
*
* @param string $message
* @param string $attribute
* @param string $rule
* @param array $parameters
* @return string
*/
protected
function
replace_countmax
(
$message
,
$attribute
,
$rule
,
$parameters
)
{
return
str_replace
(
':max'
,
$parameters
[
0
],
$message
);
}
/**
* Replace all place-holders for the between rule.
*
* @param string $message
* @param string $attribute
* @param string $rule
* @param array $parameters
* @return string
*/
protected
function
replace_countbetween
(
$message
,
$attribute
,
$rule
,
$parameters
)
{
return
str_replace
(
array
(
':min'
,
':max'
),
$parameters
,
$message
);
}
/**
* Get the displayable name for a given attribute.
* Get the displayable name for a given attribute.
*
*
* @param string $attribute
* @param string $attribute
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment