|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace GeminiLabs\SiteReviews\Defaults; |
|
4
|
|
|
|
|
5
|
|
|
use GeminiLabs\SiteReviews\Defaults\DefaultsAbstract as Defaults; |
|
6
|
|
|
|
|
7
|
|
|
class ValidationStringsDefaults extends Defaults |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* @return array |
|
11
|
|
|
*/ |
|
12
|
|
|
protected function defaults() |
|
13
|
|
|
{ |
|
14
|
|
|
return [ |
|
15
|
|
|
'accepted' => __('This field must be accepted.', 'site-reviews'), |
|
16
|
|
|
'between' => __('This field value must be between %s and %s.', 'site-reviews'), |
|
17
|
|
|
'betweenlength' => __('This field must have between %s and %s characters.', 'site-reviews'), |
|
18
|
|
|
'email' => __('This field requires a valid e-mail address.', 'site-reviews'), |
|
19
|
|
|
'errors' => __('Please fix the submission errors.', 'site-reviews'), |
|
20
|
|
|
'max' => __('Maximum value for this field is %s.', 'site-reviews'), |
|
21
|
|
|
'maxlength' => __('This field allows a maximum of %s characters.', 'site-reviews'), |
|
22
|
|
|
'min' => __('Minimum value for this field is %s.', 'site-reviews'), |
|
23
|
|
|
'minlength' => __('This field requires a minimum of %s characters.', 'site-reviews'), |
|
24
|
|
|
'number' => __('This field requires a number.', 'site-reviews'), |
|
25
|
|
|
'required' => __('This field is required.', 'site-reviews'), |
|
26
|
|
|
'unsupported' => __('The review could not be submitted because this browser is too old. Please try again with a modern browser.', 'site-reviews'), |
|
27
|
|
|
]; |
|
28
|
|
|
} |
|
29
|
|
|
} |
|
30
|
|
|
|