Merge branch 'package'
[speedfreak] / Server / system / i18n / en_US / validation.php
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2
3 $lang = array
4 (
5         // Class errors
6         'invalid_rule'  => 'Invalid validation rule used: %s',
7         'i18n_array'    => 'The %s i18n key must be an array to be used with the in_lang rule',
8         'not_callable'  => 'Callback %s used for Validation is not callable',
9
10         // General errors
11         'unknown_error' => 'Unknown validation error while validating the %s field.',
12         'required'      => 'The %s field is required.',
13         'min_length'    => 'The %s field must be at least %d characters long.',
14         'max_length'    => 'The %s field must be %d characters or fewer.',
15         'exact_length'  => 'The %s field must be exactly %d characters.',
16         'in_array'      => 'The %s field must be selected from the options listed.',
17         'matches'       => 'The %s field must match the %s field.',
18         'valid_url'     => 'The %s field must contain a valid URL.',
19         'valid_email'   => 'The %s field must contain a valid email address.',
20         'valid_ip'      => 'The %s field must contain a valid IP address.',
21         'valid_type'    => 'The %s field must only contain %s characters.',
22         'range'         => 'The %s field must be between specified ranges.',
23         'regex'         => 'The %s field does not match accepted input.',
24         'depends_on'    => 'The %s field depends on the %s field.',
25
26         // Upload errors
27         'user_aborted'  => 'The %s file was aborted during upload.',
28         'invalid_type'  => 'The %s file is not an allowed file type.',
29         'max_size'      => 'The %s file you uploaded was too large. The maximum size allowed is %s.',
30         'max_width'     => 'The %s file you uploaded was too big. The maximum allowed width is %spx.',
31         'max_height'    => 'The %s file you uploaded was too big. The maximum allowed height is %spx.',
32         'min_width'     => 'The %s file you uploaded was too small. The minimum allowed width is %spx.',
33         'min_height'    => 'The %s file you uploaded was too small. The minimum allowed height is %spx.',
34
35         // Field types
36         'alpha'         => 'alphabetical',
37         'alpha_numeric' => 'alphabetical and numeric',
38         'alpha_dash'    => 'alphabetical, dash, and underscore',
39         'digit'         => 'digit',
40         'numeric'       => 'numeric',
41 );