Skip to content

Commit bd6289b

Browse files
committed
Fixes error messages. Validation allows max number.
Fix for both Russian and English. NB The bug is fixed for English version V4 already. No language files for other languages for V4. Signed-off-by: Evgeny Kovalev <Evgeny.Kovalev@gmail.com>
1 parent cffded6 commit bd6289b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

application/language/en/validation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
"ip" => "The :attribute must be a valid IP address.",
4747
"match" => "The :attribute format is invalid.",
4848
"max" => array(
49-
"numeric" => "The :attribute must be less than :max.",
50-
"file" => "The :attribute must be less than :max kilobytes.",
51-
"string" => "The :attribute must be less than :max characters.",
49+
"numeric" => "The :attribute may not be greater than :max.",
50+
"file" => "The :attribute may not be greater than :max kilobytes.",
51+
"string" => "The :attribute may not be greater than :max characters.",
5252
),
5353
"mimes" => "The :attribute must be a file of type: :values.",
5454
"min" => array(

application/language/ru/validation.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
"ip" => "Поле :attribute должно быть полным IP-адресом.",
4646
"match" => "Поле :attribute имеет неверный формат.",
4747
"max" => array(
48-
"numeric" => "Поле :attribute должно быть меньше :max.",
49-
"file" => "Поле :attribute должно быть меньше :max Килобайт.",
50-
"string" => "Поле :attribute должно быть короче :max символов.",
48+
"numeric" => "Поле :attribute должно быть не больше :max.",
49+
"file" => "Поле :attribute должно быть не больше :max Килобайт.",
50+
"string" => "Поле :attribute должно быть длиннее :max символов.",
5151
),
5252
"mimes" => "Поле :attribute должно быть файлом одного из типов: :values.",
5353
"min" => array(
@@ -101,4 +101,4 @@
101101

102102
'attributes' => array(),
103103

104-
);
104+
);

0 commit comments

Comments
 (0)