Skip to content

Commit a7c2c25

Browse files
committed
Merge pull request laravel#1053 from tobsn/patch-12
added array and array count validation for multi-select input
2 parents 4b8ba99 + 43c3c2d commit a7c2c25

13 files changed

+268
-88
lines changed

application/language/ar/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
"alpha" => "القيمة :attribute يمكنها أن تحتوي على أحرف فقط.",
2525
"alpha_dash" => "القيمة :attribute يمكنها أن تحتوي على أحرف و أرقام و إشارة الناقص فقط.",
2626
"alpha_num" => "القيمة :attribute يمكنها أن تحتوي على أحرف و أرقام فقط.",
27+
"array" => "The :attribute must have selected elements.",
2728
"before" => "القيمة :attribute يجب أن تكون قبل تاريخ :date.",
2829
"between" => array(
2930
"numeric" => "القيمة :attribute يجب أن تكون بين :min و :max.",
3031
"file" => "الملف :attribute يجب أن يكون بحجم من :min إلى :max كيلوبايت.",
3132
"string" => "النص :attribute يجب أن يكون بطول من :min إلى :max حرف.",
3233
),
3334
"confirmed" => "القيمة :attribute التأكيدية غير مطابقة.",
35+
"count" => "The :attribute must have exactly :count selected elements.",
36+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
37+
"countmax" => "The :attribute must have less than :max selected elements.",
38+
"countmin" => "The :attribute must have at least :min selected elements.",
3439
"different" => "القيمتان :attribute و :other يجب أن تختلفان.",
3540
"email" => "القيمة :attribute تمثل بريد إلكتروني غير صحيح.",
3641
"exists" => "القيمة المختارة :attribute غير موجودة.",

application/language/bg/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
"alpha" => "Полето :attribute трябва да съдържа само букви.",
2525
"alpha_dash" => "Полето :attribute трябва да съдържа само букви, цифри, долна черта и тире.",
2626
"alpha_num" => "Полето :attribute трябва да съдържа само букви и цифри.",
27+
"array" => "The :attribute must have selected elements.",
2728
"before" => "Полето :attribute трябва да бъде дата преди :date.",
2829
"between" => array(
2930
"numeric" => "Полето :attribute трябва да бъде между :min и :max.",
3031
"file" => "Полето :attribute трябва да бъде между :min и :max килобайта.",
3132
"string" => "Полето :attribute трябва да бъде между :min и :max знака.",
3233
),
3334
"confirmed" => "Полето :attribute не е потвърдено.",
35+
"count" => "The :attribute must have exactly :count selected elements.",
36+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
37+
"countmax" => "The :attribute must have less than :max selected elements.",
38+
"countmin" => "The :attribute must have at least :min selected elements.",
3439
"different" => "Полетата :attribute и :other трябва да са различни.",
3540
"email" => "Полето :attribute е с невалиден формат.",
3641
"exists" => "Избраната стойност на :attribute вече съществува.",

application/language/de/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
"alpha" => ":attribute darf nur Buchstaben beinhalten.",
2525
"alpha_dash" => ":attribute sollte nur aus Buchstaben, Nummern und Bindestrichen bestehen.",
2626
"alpha_num" => ":attribute sollte nur aus Buchstaben und Nummern bestehen.",
27+
"array" => "The :attribute must have selected elements.",
2728
"before" => ":attribute muss ein Datum vor dem :date sein.",
2829
"between" => array(
2930
"numeric" => ":attribute muss zwischen :min und :max liegen.",
3031
"file" => ":attribute muss zwischen :min und :max Kilobytes groß sein.",
3132
"string" => ":attribute muss zwischen :min und :max Zeichen lang sein.",
3233
),
3334
"confirmed" => ":attribute stimmt nicht mit der Bestätigung überein.",
35+
"count" => "The :attribute must have exactly :count selected elements.",
36+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
37+
"countmax" => "The :attribute must have less than :max selected elements.",
38+
"countmin" => "The :attribute must have at least :min selected elements.",
3439
"different" => ":attribute und :other müssen verschieden sein.",
3540
"email" => ":attribute ist keine gültige Email-Adresse.",
3641
"exists" => "Der gewählte Wert für :attribute ist ungültig.",

application/language/en/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
"alpha" => "The :attribute may only contain letters.",
2525
"alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
2626
"alpha_num" => "The :attribute may only contain letters and numbers.",
27+
"array" => "The :attribute must have selected elements.",
2728
"before" => "The :attribute must be a date before :date.",
2829
"between" => array(
2930
"numeric" => "The :attribute must be between :min - :max.",
3031
"file" => "The :attribute must be between :min - :max kilobytes.",
3132
"string" => "The :attribute must be between :min - :max characters.",
3233
),
3334
"confirmed" => "The :attribute confirmation does not match.",
35+
"count" => "The :attribute must have exactly :count selected elements.",
36+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
37+
"countmax" => "The :attribute must have less than :max selected elements.",
38+
"countmin" => "The :attribute must have at least :min selected elements.",
3439
"different" => "The :attribute and :other must be different.",
3540
"email" => "The :attribute format is invalid.",
3641
"exists" => "The selected :attribute is invalid.",

application/language/fr/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
"alpha" => "Le champ :attribute ne doit contenir que des lettres.",
2525
"alpha_dash" => "Le champ :attribute ne doit contenir que des lettres, nombres et des tirets.",
2626
"alpha_num" => "Le champ :attribute ne doit contenir que des lettres et nombres.",
27+
"array" => "The :attribute must have selected elements.",
2728
"before" => "Le champ :attribute doit être une date avant :date.",
2829
"between" => array(
2930
"numeric" => "Le champ :attribute doit être entre :min - :max.",
3031
"file" => "Le champ :attribute doit être entre :min - :max kilo-octets.",
3132
"string" => "Le champ :attribute doit être entre :min - :max caractères.",
3233
),
3334
"confirmed" => "Le champ :attribute confirmation est différent.",
35+
"count" => "The :attribute must have exactly :count selected elements.",
36+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
37+
"countmax" => "The :attribute must have less than :max selected elements.",
38+
"countmin" => "The :attribute must have at least :min selected elements.",
3439
"different" => "Les champ :attribute et :other doivent être différents.",
3540
"email" => "Le format du champ :attribute est invalide.",
3641
"exists" => "Le champ sélectionné :attribute est invalide.",

application/language/he/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@
2727
"alpha" => "הערך :attribute יכול להכיל רק אותיות.",
2828
"alpha_dash" => "הערך :attribute יכול להכיל רק אותיות, מספרים ומקפים.",
2929
"alpha_num" => "הערך :attribute יכול להכיל רק אותיות ומספרים.",
30+
"array" => "The :attribute must have selected elements.",
3031
"before" => "הערך :attribute חייב להכיל תאריך לפני :date.",
3132
"between" => array(
3233
"numeric" => "הערך :attribute חייב להיות בין :min ל-:max.",
3334
"file" => "הערך :attribute חייב לשקול בין :min ל-:max ק"ב.",
3435
"string" => "הערך :attribute חייב להכיל בין :min ל-:max תווים.",
3536
),
3637
"confirmed" => "הערכים של :attribute חייבים להיות זהים.",
38+
"count" => "The :attribute must have exactly :count selected elements.",
39+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
40+
"countmax" => "The :attribute must have less than :max selected elements.",
41+
"countmin" => "The :attribute must have at least :min selected elements.",
3742
"different" => "הערכים של :attribute ו-:other חייבים להיות שונים.",
3843
"email" => "הערך :attribute חייב להכיל כתובת אימייל תקינה.",
3944
"exists" => "הערך :attribute לא קיים.",

application/language/hu/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
"alpha" => "A(z) :attribute csak betűket tartalmazhat.",
2525
"alpha_dash" => "A(z) :attribute betűket, számokat és kötőjeleket tartalmazhat.",
2626
"alpha_num" => "A(z) :attribute csak betűket és számokat tartalmazhat.",
27+
"array" => "The :attribute must have selected elements.",
2728
"before" => "A :attribute :date előtti dátum kell legyen.",
2829
"between" => array(
2930
"numeric" => "A(z) :attribute :min - :max közötti érték kell legyen.",
3031
"file" => "A(z) :attribute :min - :max kilobyte között kell legyen.",
3132
"string" => "A(z) :attribute :min - :max karakterhossz között kell legyen",
3233
),
3334
"confirmed" => "A(z) :attribute megerősítése nem egyezett meg.",
35+
"count" => "The :attribute must have exactly :count selected elements.",
36+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
37+
"countmax" => "The :attribute must have less than :max selected elements.",
38+
"countmin" => "The :attribute must have at least :min selected elements.",
3439
"different" => "A(z) :attribute és :other különböző kell legyen.",
3540
"email" => "A(z) :attribute formátuma nem megfelelő.",
3641
"exists" => "A(z) választott :attribute nem megfelelő.",

application/language/id/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
"alpha" => "Isian :attribute hanya boleh berisi huruf.",
2525
"alpha_dash" => "Isian :attribute hanya boleh berisi huruf, angka, dan strip.",
2626
"alpha_num" => "Isian :attribute hanya boleh berisi huruf dan angka.",
27+
"array" => "The :attribute must have selected elements.",
2728
"before" => "Isian :attribute harus tanggal sebelum :date.",
2829
"between" => array(
2930
"numeric" => "Isian :attribute harus antara :min - :max.",
3031
"file" => "Isian :attribute harus antara :min - :max kilobytes.",
3132
"string" => "Isian :attribute harus antara :min - :max karakter.",
3233
),
3334
"confirmed" => "Konfirmasi :attribute tidak cocok.",
35+
"count" => "The :attribute must have exactly :count selected elements.",
36+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
37+
"countmax" => "The :attribute must have less than :max selected elements.",
38+
"countmin" => "The :attribute must have at least :min selected elements.",
3439
"different" => "Isian :attribute dan :other harus berbeda.",
3540
"email" => "Format isian :attribute tidak valid.",
3641
"exists" => "Isian :attribute yang dipilih tidak valid.",

application/language/ja/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,18 @@
4040
"alpha" => ":attributeはアルファベッドのみがご利用できます。",
4141
"alpha_dash" => ":attributeは英数字とダッシュ(-)及び下線(_)がご利用できます。",
4242
"alpha_num" => ":attributeは英数字がご利用できます。",
43+
"array" => "The :attribute must have selected elements.",
4344
"before" => ":attributeには、:date以前の日付をご利用ください。",
4445
"between" => array(
4546
"numeric" => ":attributeは、:minから、:maxまでの数字をご指定ください。",
4647
"file" => ":attributeには、:min kBから:max kBまでのサイズのファイルをご指定ください。",
4748
"string" => ":attributeは、:min文字から:max文字の間でご指定ください。",
4849
),
4950
"confirmed" => ":attributeと、確認フィールドとが、一致していません。",
51+
"count" => "The :attribute must have exactly :count selected elements.",
52+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
53+
"countmax" => "The :attribute must have less than :max selected elements.",
54+
"countmin" => "The :attribute must have at least :min selected elements.",
5055
"different" => ":attributeと:otherには、異なった内容を指定してください。",
5156
"email" => ":attributeには正しいメールアドレスの形式をご指定ください。",
5257
"exists" => "選択された:attributeは正しくありません。",

application/language/nl/validation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@
1515
"alpha" => "Het :attribute mag alleen letters bevatten.",
1616
"alpha_dash" => "Het :attribute mag alleen letters, nummers, onderstreep(_) en strepen(-) bevatten.",
1717
"alpha_num" => "Het :attribute mag alleen letters en nummers",
18+
"array" => "The :attribute must have selected elements.",
1819
"before" => "Het :attribute moet een datum voor :date zijn.",
1920
"between" => array(
2021
"numeric" => "Het :attribute moet tussen :min en :max zijn.",
2122
"file" => "Het :attribute moet tussen :min en :max kilobytes zijn.",
2223
"string" => "Het :attribute moet tussen :min en :max tekens zijn.",
2324
),
2425
"confirmed" => "Het :attribute bevestiging komt niet overeen.",
26+
"count" => "The :attribute must have exactly :count selected elements.",
27+
"countbetween" => "The :attribute must have between :min and :max selected elements.",
28+
"countmax" => "The :attribute must have less than :max selected elements.",
29+
"countmin" => "The :attribute must have at least :min selected elements.",
2530
"different" => "Het :attribute en :other moeten verschillend zijn.",
2631
"email" => "Het :attribute formaat is ongeldig.",
2732
"exists" => "Het gekozen :attribute is al ingebruik.",

0 commit comments

Comments
 (0)