Valiant/Validator/locale/errors.pl

filter: Statementstmt 100% 1 / 1 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 1 / 1 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Valiant/Validator.pm ↑ Summary Valiant/locale/errors.pl »
1 {
2 37 en => {
3 errors => {
4 messages => {
5 # scalar
6 is_not_a_scalar => 'must be a string or number',
7 # numericality
8 less_than_or_equal_to_err => 'must be less than or equal to {{count}}',
9 is_number_err => "is not a number",
10 is_integer_err => "must be an integer",
11 greater_than_err => "must be greater than {{count}}",
12 greater_than_or_equal_to_err => "must be greater than or equal to {{count}}",
13 equal_to_err => "must be equal to {{count}}",
14 less_than_err => "must be less than {{count}}",
15 other_than_err => "must be other than {{count}}",
16 odd_err => "must be odd",
17 even_err => "must be even",
18 divisible_by_err => "is not evenly divisible by {{count}}",
19 decimals_err => "must have exactly {{count}} decimal places",
20 positive_integer_err => 'must be a positive integer',
21 negative_integer_err => 'must be a negative integer',
22 positive_err => 'must be a positive number',
23 negative_err => 'must be a negative number',
24 pg_serial_err => 'is not in acceptable value range',
25 pg_bigserial_err => 'is not in acceptable value range',
26 # length
27 too_short => {
28 one => 'is too short (minimum is 1 character)',
29 other => 'is too short (minimum is {{count}} characters)',
30 },
31 too_long => {
32 one => 'is too long (maximum is 1 character)',
33 other => 'is too long (maximum is {{count}} characters)',
34 },
35 wrong_length => {
36 one => "is the wrong length (should be 1 character)",
37 other => "is the wrong length (should be {{count}} characters)",
38 },
39 # presence
40 is_blank => "can't be blank",
41 # absence
42 is_present => 'must be blank',
43 # inclusion
44 inclusion => 'is not in the list',
45 # exclusion
46 exclusion => 'is reserved',
47 # format
48 invalid_format_match => 'does not match the required pattern',
49 invalid_format_without => 'contains invalid characters',
50 not_alpha => 'must contain only alphabetic characters',
51 not_words => 'must be letters and spaces only',
52 not_alpha_numeric => 'must contain only alphabetic and number characters',
53 not_email => 'is not an email address',
54 not_zip => 'is not a zip code',
55 not_zip5 => 'is not a zip code',
56 not_zip9 => 'is not a zip code',
57 not_ascii => 'must be ASCII characters',
58 not_word => 'must be a single word',
59 # confirmation
60 confirmation => "doesn't match '{{attribute}}'",
61 #only_of
62 only_of => {
63 one => 'please choose only {{count}} field',
64 other => 'please choose only {{count}} fields'
65 },
66 #check
67 check => 'is invalid',
68 #boolean
69 is_not_true => 'must be a true value',
70 is_not_false => 'must be a false value',
71 #acceptance
72 accepted => 'must be accepted',
73 #unique
74 is_not_unique => 'chosen is not unique',
75 #date
76 above_max => "chosen date can't be later than {{max}}",
77 below_min => "chosen date can't be earlier than {{min}}",
78 above_max_eq => "chosen date can't be later than or equal to {{max}}",
79 below_min_eq => "chosen date can't be earlier than or equal to {{min}}",
80 invalid_date => "doesn't look like a date",
81 #object
82 not_blessed => 'is not an object',
83 type_constraint_violation => 'violates type constraint "{{display_name}}"',
84 wrong_inheritance => 'does not inherit from "{{parent}}"',
85 not_role => 'does not provide the role "{{role}}"',
86 #array
87 max_length_err => 'has too many items (maximum is {{max}})',
88 min_length_err => 'has too few rows (minimum is {{min}})',
89 not_array_err => 'is not an array',
90 },
91 }
92 },
93 };
« Valiant/Validator.pm ↑ Summary Valiant/locale/errors.pl »