Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 954fee6

Browse files
committed
👌 add new validation rules and improve form validation
Signed-off-by: otengkwame <[email protected]>
1 parent e384979 commit 954fee6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

framework/language/english/form_validation_lang.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,30 @@
6767
$lang['form_validation_greater_than_equal_to'] = 'The {field} field must contain a number greater than or equal to {param}.';
6868
$lang['form_validation_error_message_not_set'] = 'Unable to access an error message corresponding to your field name {field}.';
6969
$lang['form_validation_in_list'] = 'The {field} field must be one of: {param}.';
70+
71+
// --------------------------------------------------------------------
72+
73+
$lang['file_required'] = 'The field {field} is required.';
74+
$lang['file_size_max'] = "The file uploaded in {field} is too big (max size is {param}).";
75+
$lang['file_size_min'] = "The file uploaded in {field} is too small (min size is {param}).";
76+
$lang['file_allowed_type'] = "The file uploaded in {field} should be {param}.";
77+
$lang['file_disallowed_type'] = "The file uploaded in {field} cannot be {param}.";
78+
$lang['file_image_maxdim'] = "The dimensions of the file uploaded in {field} are too big.";
79+
$lang['file_image_mindim'] = "The dimensions of the file uploaded in {field} are too small.";
80+
$lang['file_image_exactdim'] = "The file uploaded in {field} doesn't have the right dimensions.";
81+
$lang['is_exactly'] = "The field {field} contains a non valid value.";
82+
$lang['is_not'] = "The field {field} contains a non valid value.";
83+
$lang['error_max_filesize_phpini'] = "The file exceeds the upload_max_filesize directive from php.ini.";
84+
$lang['error_max_filesize_form'] = "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.";
85+
$lang['error_partial_upload'] = "The file it's only partially uploaded.";
86+
$lang['error_temp_dir'] = "Temp dir error.";
87+
$lang['error_disk_write'] = "Disk write error.";
88+
$lang['error_stopped'] = "File upload stopped by extension";
89+
$lang['error_unexpected'] = "Unexpected file upload error. Error: {field}";
90+
$lang['valid_json'] = "The field {field} must be a valid json.";
91+
$lang['valid_hour'] = "The field {field} must be a valid hour.";
92+
$lang['valid_date'] = "The field {field} must be a valid date.";
93+
$lang['valid_range_date'] = "The field {field} must be a valid date range.";
94+
$lang['valid_latitude'] = "The %s latitude doesn't have a correct position.";
95+
$lang['valid_longitude'] = "The %s longitude doesn't have a correct position.";
96+
$lang['valid_latlong'] = "The %s map coodinates doesn't have a correct position.";

0 commit comments

Comments
 (0)