added array and array count validation
added validate_array/count/countmin/countmax/countbetween - corresponding replace_count/countmin/countmax/countbetween message functions - corresponding validator error messages into all language files (please have maintainers update their language files) - also converted spaces to tabs in the polish language file to fit all the others.
This commit is contained in:
parent
7256dc2a65
commit
bf07de7d5e
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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 غير موجودة.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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 вече съществува.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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.",
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
"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 @@
|
||||||
"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 לא קיים.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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ő.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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.",
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
"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 @@
|
||||||
"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は正しくありません。",
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"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 @@
|
||||||
"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.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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.",
|
||||||
|
"array" => "The :attribute must have selected elements.",
|
||||||
"before" => ":attribute musi zawierać datę, która jest przed :date.",
|
"before" => ":attribute musi zawierać datę, która jest przed :date.",
|
||||||
"between" => array(
|
"between" => array(
|
||||||
"numeric" => ":ttribute musi mieścić się w granicach :min - :max.",
|
"numeric" => ":ttribute musi mieścić się w granicach :min - :max.",
|
||||||
|
@ -31,6 +32,10 @@
|
||||||
"string" => ":attribute musi mieć :min - :max znaków.",
|
"string" => ":attribute musi mieć :min - :max znaków.",
|
||||||
),
|
),
|
||||||
"confirmed" => "Potwierdzenie :attribute się nie zgadza.",
|
"confirmed" => "Potwierdzenie :attribute się nie zgadza.",
|
||||||
|
"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 i :other muszą się od siebie różnić.",
|
"different" => ":attribute i :other muszą się od siebie różnić.",
|
||||||
"email" => "The :attribute format is invalid.",
|
"email" => "The :attribute format is invalid.",
|
||||||
"exists" => "Zaznaczona opcja :attribute jest nieprawidłowa.",
|
"exists" => "Zaznaczona opcja :attribute jest nieprawidłowa.",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"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 @@
|
||||||
"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 уже существует.",
|
||||||
|
|
|
@ -667,6 +667,70 @@ protected function validate_mimes($attribute, $value, $parameters)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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.
|
||||||
*
|
*
|
||||||
|
@ -952,6 +1016,62 @@ protected function replace_after($message, $attribute, $rule, $parameters)
|
||||||
return str_replace(':date', $parameters[0], $message);
|
return str_replace(':date', $parameters[0], $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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, $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, $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, $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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue