Browse Source

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>

Evgeny Kovalev 11 years ago
parent
commit
bd6289b118
2 changed files with 7 additions and 7 deletions
  1. 3 3
      application/language/en/validation.php
  2. 4 4
      application/language/ru/validation.php

+ 3 - 3
application/language/en/validation.php

@@ -46,9 +46,9 @@ return array(
 	"ip"             => "The :attribute must be a valid IP address.",
 	"match"          => "The :attribute format is invalid.",
 	"max"            => array(
-		"numeric" => "The :attribute must be less than :max.",
-		"file"    => "The :attribute must be less than :max kilobytes.",
-		"string"  => "The :attribute must be less than :max characters.",
+		"numeric" => "The :attribute may not be greater than :max.",
+		"file"    => "The :attribute may not be greater than :max kilobytes.",
+		"string"  => "The :attribute may not be greater than :max characters.",
 	),
 	"mimes"          => "The :attribute must be a file of type: :values.",
 	"min"            => array(

+ 4 - 4
application/language/ru/validation.php

@@ -45,9 +45,9 @@ return array(
 	"ip"             => "Поле :attribute должно быть полным IP-адресом.",
 	"match"          => "Поле :attribute имеет неверный формат.",
 	"max"            => array(
-		"numeric" => "Поле :attribute должно быть меньше :max.",
-		"file"    => "Поле :attribute должно быть меньше :max Килобайт.",
-		"string"  => "Поле :attribute должно быть короче :max символов.",
+		"numeric" => "Поле :attribute должно быть не больше :max.",
+		"file"    => "Поле :attribute должно быть не больше :max Килобайт.",
+		"string"  => "Поле :attribute должно быть длиннее :max символов.",
 	),
 	"mimes"          => "Поле :attribute должно быть файлом одного из типов: :values.",
 	"min"            => array(
@@ -101,4 +101,4 @@ return array(
 
 	'attributes' => array(),
 
-);
+);