Merge branch '3.1/release/3.1.4' into 3.1/master
[kohana-core.git] / messages / validation.php
blobdcaa3898753e1e6d6faf48074ee12f6e2de3ca19
1 <?php defined('SYSPATH') or die('No direct script access.');
3 return array(
4 'alpha' => ':field must contain only letters',
5 'alpha_dash' => ':field must contain only numbers, letters and dashes',
6 'alpha_numeric' => ':field must contain only letters and numbers',
7 'color' => ':field must be a color',
8 'credit_card' => ':field must be a credit card number',
9 'date' => ':field must be a date',
10 'decimal' => ':field must be a decimal with :param2 places',
11 'digit' => ':field must be a digit',
12 'email' => ':field must be a email address',
13 'email_domain' => ':field must contain a valid email domain',
14 'equals' => ':field must equal :param2',
15 'exact_length' => ':field must be exactly :param2 characters long',
16 'in_array' => ':field must be one of the available options',
17 'ip' => ':field must be an ip address',
18 'matches' => ':field must be the same as :param2',
19 'min_length' => ':field must be at least :param2 characters long',
20 'max_length' => ':field must not exceed :param2 characters long',
21 'not_empty' => ':field must not be empty',
22 'numeric' => ':field must be numeric',
23 'phone' => ':field must be a phone number',
24 'range' => ':field must be within the range of :param2 to :param3',
25 'regex' => ':field does not match the required format',
26 'url' => ':field must be a url',