Files
safekat/ci4/app/Language/en/Validation.php

60 lines
4.1 KiB
PHP
Executable File

<?php
// override core en language system validation or define your own en language validation message
return [
// General rules
'required' => 'The {field} field is required.',
'matches' => 'The {field} field does not match the {param} field.',
'differs' => 'The {field} field must differ from the {param} field.',
'isUnique' => 'The value of {field} is already in use.',
'is_natural' => 'The {field} field must only contain positive numbers.',
'is_natural_no_zero' => 'The {field} field must be greater than zero.',
'valid_url' => 'The {field} field must contain a valid URL.',
'valid_email' => 'The {field} field must contain a valid email address.',
'valid_emails' => 'The {field} field must contain only valid email addresses.',
'valid_ip' => 'The {field} field must contain a valid IP address.',
'valid_base64' => 'The {field} field must contain a valid Base64 string.',
'valid_json' => 'The {field} field must contain a valid JSON string.',
'valid_datetime' => 'The {field} field must contain a valid date and time.',
'valid_date' => 'The {field} field must contain a valid date.',
'valid_time' => 'The {field} field must contain a valid time.',
// Comparison rules
'min_length' => 'The {field} field must be at least {param} characters long.',
'max_length' => 'The {field} field must not exceed {param} characters.',
'exact_length' => 'The {field} field must be exactly {param} characters long.',
'greater_than' => 'The {field} field must be greater than {param}.',
'greater_than_equal_to' => 'The {field} field must be greater than or equal to {param}.',
'less_than' => 'The {field} field must be less than {param}.',
'less_than_equal_to' => 'The {field} field must be less than or equal to {param}.',
// Type rules
'alpha' => 'The {field} field may only contain alphabetic characters.',
'alpha_space' => 'The {field} field may only contain letters and spaces.',
'alpha_numeric' => 'The {field} field may only contain letters and numbers.',
'alpha_numeric_space' => 'The {field} field may only contain letters, numbers, and spaces.',
'alpha_numeric_punct' => 'The {field} field may only contain letters, numbers, spaces, and the following characters: . , : ; - _ ! ?',
'alpha_numeric_dash' => 'The {field} field may only contain letters, numbers, underscores, and dashes.',
'numeric' => 'The {field} field must contain only numbers.',
'integer' => 'The {field} field must contain an integer.',
'decimal' => 'The {field} field must contain a decimal number.',
'natural' => 'The {field} field must contain only positive numbers.',
'natural_no_zero' => 'The {field} field must contain a number greater than zero.',
'in_list' => 'The {field} field must be one of the following: {param}.',
// File validation
'uploaded' => 'You must upload a file in the {field} field.',
'max_size' => 'The file in the {field} field must not exceed {param} kilobytes.',
'is_image' => 'The file in the {field} field must be a valid image.',
'mime_in' => 'The file in the {field} field must be of type: {param}.',
'ext_in' => 'The file in the {field} field must have one of the following extensions: {param}.',
'max_dims' => 'The image in the {field} field must not exceed the allowed dimensions: {param}.',
// Other
'permit_empty' => 'The {field} field may be left empty.',
'string' => 'The {field} field must be a text string.',
'is_unique' => 'The {field} value already exists in the system.',
'valid_cc_number' => 'The {field} field does not contain a valid credit card number.',
'regex_match' => 'The {field} field format is invalid.',
];