/util/messages
#! | 114 lines | 114 code | 0 blank | 0 comment | 0 complexity | b1bfba77ebb5f85e98823fc5f554ab3b MD5 | raw file
1[ 2 { 3 'Field' => { 4 'range_too_high' => 'Value must be less than or equal to [_1]', 5 'range_incorrect' => 'Value must be between [_1] and [_2]', 6 'wrong_value' => 'Wrong value', 7 'error_occurred' => 'error occurred', 8 'range_too_low' => 'Value must be greater than or equal to [_1]', 9 'field_invalid' => 'field is invalid', 10 'required' => '[_1] field is required', 11 'not_allowed' => '[_1] not allowed', 12 'no_match' => '[_1] does not match' 13 } 14 }, 15 { 16 'Types' => { 17 'NegativeNum' => 'Must be a negative number', 18 'NegativeInt' => 'Must be a negative integer', 19 'PositiveNum' => 'Must be a positive number', 20 'WordChars' => 'Must be made up of letters, digits, and underscores', 21 'IPAddress' => 'Not a valid IP address', 22 'PositiveInt' => 'Must be a positive integer', 23 'State' => 'Not a valid state', 24 'Printable' => 'Field contains non-printable characters', 25 'Password' => 'Must be between 4 and 255 chars', 26 'Zip' => 'Zip is not valid', 27 'SimpleStr' => 'Must be a single line of no more than 255 chars', 28 'Email' => 'Email is not valid', 29 'SingleDigit' => 'Must be a single digit', 30 'NonEmptySimpleStr' => 'Must be a non-empty single line of no more than 255 chars', 31 'NotAllDigits' => 'Must not be all digits', 32 'NoSpaces' => 'Must not contain spaces', 33 'SingleWord' => 'Field must contain a single word', 34 'NonEmptyStr' => 'Must not be empty', 35 'StrongPassword' => 'Must be between 8 and 255 chars, and contain a non-alpha char' 36 } 37 }, 38 { 39 'Date' => { 40 'date_late' => 'Date is too late', 41 'date_early' => 'Date is too early' 42 } 43 }, 44 { 45 'DateTime' => { 46 'datetime_invalid' => 'Not a valid DateTime' 47 } 48 }, 49 { 50 'Duration' => { 51 'duration_invalid' => 'Invalid value for [_1]: [_2]' 52 } 53 }, 54 { 55 'Email' => { 56 'email_format' => 'Email should be of the format [_1]' 57 } 58 }, 59 { 60 'Float' => { 61 'float_needed' => 'Must be a number. May contain numbers, +, - and decimal separator \'[_1]\'', 62 'float_precision' => 'May have a maximum of [quant,_1,digit] after the decimal point, but has [_2]', 63 'float_size' => 'Total size of number must be less than or equal to [_1], but is [_2]' 64 } 65 }, 66 { 67 'Integer' => { 68 'integer_needed' => 'Value must be an integer' 69 } 70 }, 71 { 72 'Money' => { 73 'money_real' => 'Value must be a real number', 74 'money_convert' => 'Value cannot be converted to money' 75 } 76 }, 77 { 78 'Password' => { 79 'required' => 'Please enter a password in this field', 80 'password_ne_username' => 'Password must not match [_1]' 81 } 82 }, 83 { 84 'PasswordConf' => { 85 'required' => 'Please enter a password confirmation', 86 'pass_conf_not_matched' => 'The password confirmation does not match the password' 87 } 88 }, 89 { 90 'PosInteger' => { 91 'integer_positive' => 'Value must be a positive integer' 92 } 93 }, 94 { 95 'Select' => { 96 'select_not_multiple' => 'This field does not take multiple values', 97 'select_invalid_value' => '\'[_1]\' is not a valid value' 98 } 99 }, 100 { 101 'Text' => { 102 'text_maxlength' => 'Field should not exceed [quant,_1,character]. You entered [_2]', 103 'text_minlength' => 'Field must be at least [quant,_1,character]. You entered [_2]' 104 } 105 }, 106 { 107 'Upload' => { 108 'upload_file_too_small' => 'File is too small (< [_1] bytes)', 109 'upload_file_empty' => 'File uploaded is empty', 110 'upload_file_not_found' => 'File not found for upload field', 111 'upload_file_too_big' => 'File is too big (> [_1] bytes)' 112 } 113 } 114 ]