form-actions.php
4 days ago
form-uploads.php
4 days ago
hooks.php
1 month ago
listeners.cache.php
1 month ago
media.php
1 month ago
messages.php
4 days ago
migrations.php
1 month ago
policies.cache.php
1 month ago
messages.php
145 lines
| 1 | <?php |
| 2 | |
| 3 | return [ |
| 4 | 'validator' => [ |
| 5 | 'failed' => __('Validation failed!', 'kirki'), |
| 6 | /* translators: %s: Field name. */ |
| 7 | 'invalid' => __('The %s field is invalid.', 'kirki'), |
| 8 | /* translators: %s: Validation rule name. */ |
| 9 | 'invalid_rule' => __('There is no validation rule defined as %s.', 'kirki'), |
| 10 | 'required' => [ |
| 11 | 'default' => __('The {name} field is required.', 'kirki'), |
| 12 | ], |
| 13 | 'required_if' => [ |
| 14 | 'default' => __('The {name} field is required.', 'kirki'), |
| 15 | ], |
| 16 | 'required_unless' => [ |
| 17 | 'default' => __('The {name} field is required.', 'kirki'), |
| 18 | ], |
| 19 | 'prohibited' => [ |
| 20 | 'default' => __('The {name} field is prohibited.', 'kirki'), |
| 21 | ], |
| 22 | 'prohibited_if' => [ |
| 23 | 'default' => __('The {name} field is prohibited.', 'kirki'), |
| 24 | ], |
| 25 | 'prohibited_unless' => [ |
| 26 | 'default' => __('The {name} field is prohibited.', 'kirki'), |
| 27 | ], |
| 28 | 'boolean' => [ |
| 29 | 'default' => __('The {name} field must be a boolean.', 'kirki'), |
| 30 | ], |
| 31 | 'object' => [ |
| 32 | 'default' => __('The {name} field must be an object.', 'kirki'), |
| 33 | ], |
| 34 | 'exists' => [ |
| 35 | 'default' => __('The selected {name} does not exist.', 'kirki'), |
| 36 | ], |
| 37 | 'unique' => [ |
| 38 | 'default' => __('The {name} has already been taken.', 'kirki'), |
| 39 | ], |
| 40 | 'in' => [ |
| 41 | 'default' => __('The {name} field must be in the list of "{args}".', 'kirki'), |
| 42 | ], |
| 43 | 'not_in' => [ |
| 44 | 'default' => __('The {name} field must not be in the list of "{args}".', 'kirki'), |
| 45 | ], |
| 46 | 'same_as' => [ |
| 47 | 'default' => __('The {name} field must match the {args} field.', 'kirki'), |
| 48 | ], |
| 49 | 'string' => [ |
| 50 | 'min' => __('The {name} field must be at least {min} characters long.', 'kirki'), |
| 51 | 'max' => __('The {name} field must be at most {max} characters long.', 'kirki'), |
| 52 | 'length' => __('The {name} field must be {length} characters long.', 'kirki'), |
| 53 | 'size' => __('The {name} field must be {size} characters long.', 'kirki'), |
| 54 | 'email' => __('The {name} field must be a valid email address.', 'kirki'), |
| 55 | 'url' => __('The {name} field must be a valid url.', 'kirki'), |
| 56 | 'regex' => __('The {name} field format is invalid.', 'kirki'), |
| 57 | 'ip' => __('The {name} field must be a valid ip address.', 'kirki'), |
| 58 | 'alpha' => __('The {name} field must only contain alphabetic characters.', 'kirki'), |
| 59 | 'alpha_num' => __('The {name} field must only contain alphabetic characters and numbers.', 'kirki'), |
| 60 | 'alpha_dash' => __('The {name} field must only contain alphabetic characters, dashes and underscores.', 'kirki'), |
| 61 | 'between' => __('The {name} field must be between {min} and {max} characters long.', 'kirki'), |
| 62 | 'starts_with' => __('The {name} field must start with {starts_with}.', 'kirki'), |
| 63 | 'ends_with' => __('The {name} field must end with {ends_with}.', 'kirki'), |
| 64 | 'doesnt_start_with' => __('The {name} field must not start with {doesnt_start_with}.', 'kirki'), |
| 65 | 'doesnt_end_with' => __('The {name} field must not end with {doesnt_end_with}.', 'kirki'), |
| 66 | 'exactly' => __('The {name} field must be exactly {exactly} characters long.', 'kirki'), |
| 67 | 'default' => __('The {name} field must be a string.', 'kirki'), |
| 68 | ], |
| 69 | 'array' => [ |
| 70 | 'default' => __('The field {name} must be an array.', 'kirki'), |
| 71 | 'min' => __('The field {name} must have at least {min} items.', 'kirki'), |
| 72 | 'max' => __('The field {name} must have at most {max} items.', 'kirki'), |
| 73 | 'size' => __('The field {name} must have exactly {size} items.', 'kirki'), |
| 74 | 'exactly' => __('The field {name} must have exactly {exactly} items.', 'kirki'), |
| 75 | 'contains' => __('The field {name} must contain {contains}.', 'kirki'), |
| 76 | ], |
| 77 | 'numeric' => [ |
| 78 | 'default' => __('The field {name} must be a number.', 'kirki'), |
| 79 | 'min' => __('The field {name} must be greater than or equal to {min}.', 'kirki'), |
| 80 | 'max' => __('The field {name} must be less than or equal to {max}.', 'kirki'), |
| 81 | 'integer' => __('The field {name} must be an integer.', 'kirki'), |
| 82 | 'int' => __('The field {name} must be an integer.', 'kirki'), |
| 83 | 'float' => __('The field {name} must be a float.', 'kirki'), |
| 84 | 'decimal' => __('The field {name} must be a decimal.', 'kirki'), |
| 85 | 'gt' => __('The field {name} must be greater than {gt}.', 'kirki'), |
| 86 | 'gte' => __('The field {name} must be greater than or equal to {gte}.', 'kirki'), |
| 87 | 'lt' => __('The field {name} must be less than {lt}.', 'kirki'), |
| 88 | 'lte' => __('The field {name} must be less than or equal to {lte}.', 'kirki'), |
| 89 | ], |
| 90 | 'date' => [ |
| 91 | 'default' => __('The {name} field must be a valid date.', 'kirki'), |
| 92 | 'after' => __('The {name} field must be a date after {after}.', 'kirki'), |
| 93 | 'format' => __('The {name} field must match the format {format}.', 'kirki'), |
| 94 | 'datetime' => __('The {name} field must be a valid datetime.', 'kirki'), |
| 95 | ], |
| 96 | 'file' => [ |
| 97 | 'default' => __('The {name} field must be a file.', 'kirki'), |
| 98 | 'size' => __('The {name} field must be less than {size} kilobytes.', 'kirki'), |
| 99 | 'min' => __('The {name} field must be at least {min} kilobytes.', 'kirki'), |
| 100 | 'max' => __('The {name} field must be less than {max} kilobytes.', 'kirki'), |
| 101 | 'between' => __('The {name} field must be between {min} and {max} kilobytes.', 'kirki'), |
| 102 | 'image' => __('The {name} field must be an image.', 'kirki'), |
| 103 | 'types' => __('The {name} field must be a file of type: {types}.', 'kirki'), |
| 104 | 'extensions' => __('The {name} field must have one of the following extensions: {extensions}.', 'kirki'), |
| 105 | ], |
| 106 | ], |
| 107 | 'auth' => [ |
| 108 | 'logged_in_required' => __('You have to be logged in.', 'kirki'), |
| 109 | 'admin_required' => __('You have to be logged in and have admin privileges.', 'kirki'), |
| 110 | 'unauthorized_request' => __('You are not authorized to make this request.', 'kirki'), |
| 111 | /* translators: %s: Ability or action name. */ |
| 112 | 'unauthorized_action' => __('You are not authorized to %s this resource.', 'kirki'), |
| 113 | 'no_policy' => __('No policy found for this resource. Pass the model instance or class name as the second argument.', 'kirki'), |
| 114 | /* translators: %s: Ability name. */ |
| 115 | 'ability_not_defined' => __('The ability %s is not defined in the policy for this resource.', 'kirki'), |
| 116 | 'upload_forbidden' => __('You are not authorized to upload files.', 'kirki'), |
| 117 | 'invalid_upload_path' => __('Invalid upload path.', 'kirki'), |
| 118 | ], |
| 119 | 'model' => [ |
| 120 | /* translators: 1: Model class name, 2: Comma-separated list of ids. */ |
| 121 | 'not_found' => __('No query results for model [%s] with ids: %s', 'kirki'), |
| 122 | ], |
| 123 | 'filesystem' => [ |
| 124 | /* translators: %s: File path. */ |
| 125 | 'file_not_found' => __('file does not exists at [%s]', 'kirki'), |
| 126 | ], |
| 127 | 'upload' => [ |
| 128 | 'directory_unavailable' => __('Upload directory is not available.', 'kirki'), |
| 129 | /* translators: 1: Source file path, 2: Destination file path, 3: Error message. */ |
| 130 | 'move_failed' => __('Could not move the file "%s" to "%s" (%s).', 'kirki'), |
| 131 | /* translators: 1: File name, 2: Maximum allowed file size in KiB. */ |
| 132 | 'ini_size_exceeded' => __('The file "%s" exceeds your upload_max_filesize ini directive (limit is %d KiB).', 'kirki'), |
| 133 | /* translators: %s: File name. */ |
| 134 | 'form_size_exceeded' => __('The file "%s" exceeds the upload limit defined in your form.', 'kirki'), |
| 135 | /* translators: %s: File name. */ |
| 136 | 'partial' => __('The file "%s" was only partially uploaded.', 'kirki'), |
| 137 | 'no_file' => __('No file was uploaded.', 'kirki'), |
| 138 | /* translators: %s: File name. */ |
| 139 | 'cant_write' => __('The file "%s" could not be written on disk.', 'kirki'), |
| 140 | 'no_tmp_dir' => __('File could not be uploaded: missing temporary directory.', 'kirki'), |
| 141 | 'stopped_by_extension' => __('File upload was stopped by a PHP extension.', 'kirki'), |
| 142 | /* translators: %s: File name. */ |
| 143 | 'unknown_error' => __('The file "%s" was not uploaded due to an unknown error.', 'kirki'), |
| 144 | ], |
| 145 | ]; |