Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Zend_Validate.php
Go to the documentation of this file.
1 <?php
26 return array(
27  // Zend_Validate_Alnum
28  "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
29  "'%value%' contains characters which are non alphabetic and no digits" => "'%value%' contains characters which are non alphabetic and no digits",
30  "'%value%' is an empty string" => "'%value%' is an empty string",
31 
32  // Zend_Validate_Alpha
33  "Invalid type given. String expected" => "Invalid type given. String expected",
34  "'%value%' contains non alphabetic characters" => "'%value%' contains non alphabetic characters",
35  "'%value%' is an empty string" => "'%value%' is an empty string",
36 
37  // Zend_Validate_Barcode
38  "'%value%' failed checksum validation" => "'%value%' failed checksum validation",
39  "'%value%' contains invalid characters" => "'%value%' contains invalid characters",
40  "'%value%' should have a length of %length% characters" => "'%value%' should have a length of %length% characters",
41  "Invalid type given. String expected" => "Invalid type given. String expected",
42 
43  // Zend_Validate_Between
44  "'%value%' is not between '%min%' and '%max%', inclusively" => "'%value%' is not between '%min%' and '%max%', inclusively",
45  "'%value%' is not strictly between '%min%' and '%max%'" => "'%value%' is not strictly between '%min%' and '%max%'",
46 
47  // Zend_Validate_Callback
48  "'%value%' is not valid" => "'%value%' is not valid",
49  "An exception has been raised within the callback" => "An exception has been raised within the callback",
50 
51  // Zend_Validate_Ccnum
52  "'%value%' must contain between 13 and 19 digits" => "'%value%' must contain between 13 and 19 digits",
53  "Luhn algorithm (mod-10 checksum) failed on '%value%'" => "Luhn algorithm (mod-10 checksum) failed on '%value%'",
54 
55  // Zend_Validate_CreditCard
56  "'%value%' seems to contain an invalid checksum" => "'%value%' seems to contain an invalid checksum",
57  "'%value%' must contain only digits" => "'%value%' must contain only digits",
58  "Invalid type given. String expected" => "Invalid type given. String expected",
59  "'%value%' contains an invalid amount of digits" => "'%value%' contains an invalid amount of digits",
60  "'%value%' is not from an allowed institute" => "'%value%' is not from an allowed institute",
61  "'%value%' seems to be an invalid creditcard number" => "'%value%' seems to be an invalid creditcard number",
62  "An exception has been raised while validating '%value%'" => "An exception has been raised while validating '%value%'",
63 
64  // Zend_Validate_Date
65  "Invalid type given. String, integer, array or Zend_Date expected" => "Invalid type given. String, integer, array or Zend_Date expected",
66  "'%value%' does not appear to be a valid date" => "'%value%' does not appear to be a valid date",
67  "'%value%' does not fit the date format '%format%'" => "'%value%' does not fit the date format '%format%'",
68 
69  // Zend_Validate_Db_Abstract
70  "No record matching '%value%' was found" => "No record matching '%value%' was found",
71  "A record matching '%value%' was found" => "A record matching '%value%' was found",
72 
73  // Zend_Validate_Digits
74  "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
75  "'%value%' must contain only digits" => "'%value%' must contain only digits",
76  "'%value%' is an empty string" => "'%value%' is an empty string",
77 
78  // Zend_Validate_EmailAddress
79  "Invalid type given. String expected" => "Invalid type given. String expected",
80  "'%value%' is not a valid email address in the basic format local-part@hostname" => "'%value%' is not a valid email address in the basic format local-part@hostname",
81  "'%hostname%' is not a valid hostname for email address '%value%'" => "'%hostname%' is not a valid hostname for email address '%value%'",
82  "'%hostname%' does not appear to have a valid MX record for the email address '%value%'" => "'%hostname%' does not appear to have a valid MX record for the email address '%value%'",
83  "'%hostname%' is not in a routable network segment. The email address '%value%' should not be resolved from public network" => "'%hostname%' is not in a routable network segment. The email address '%value%' should not be resolved from public network",
84  "'%localPart%' can not be matched against dot-atom format" => "'%localPart%' can not be matched against dot-atom format",
85  "'%localPart%' can not be matched against quoted-string format" => "'%localPart%' can not be matched against quoted-string format",
86  "'%localPart%' is not a valid local part for email address '%value%'" => "'%localPart%' is not a valid local part for email address '%value%'",
87  "'%value%' exceeds the allowed length" => "'%value%' exceeds the allowed length",
88 
89  // Zend_Validate_File_Count
90  "Too many files, maximum '%max%' are allowed but '%count%' are given" => "Too many files, maximum '%max%' are allowed but '%count%' are given",
91  "Too few files, minimum '%min%' are expected but '%count%' are given" => "Too few files, minimum '%min%' are expected but '%count%' are given",
92 
93  // Zend_Validate_File_Crc32
94  "File '%value%' does not match the given crc32 hashes" => "File '%value%' does not match the given crc32 hashes",
95  "A crc32 hash could not be evaluated for the given file" => "A crc32 hash could not be evaluated for the given file",
96  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
97 
98  // Zend_Validate_File_ExcludeExtension
99  "File '%value%' has a false extension" => "File '%value%' has a false extension",
100  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
101 
102  // Zend_Validate_File_ExcludeMimeType
103  "File '%value%' has a false mimetype of '%type%'" => "File '%value%' has a false mimetype of '%type%'",
104  "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
105  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
106 
107  // Zend_Validate_File_Exists
108  "File '%value%' does not exist" => "File '%value%' does not exist",
109 
110  // Zend_Validate_File_Extension
111  "File '%value%' has a false extension" => "File '%value%' has a false extension",
112  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
113 
114  // Zend_Validate_File_FilesSize
115  "All files in sum should have a maximum size of '%max%' but '%size%' were detected" => "All files in sum should have a maximum size of '%max%' but '%size%' were detected",
116  "All files in sum should have a minimum size of '%min%' but '%size%' were detected" => "All files in sum should have a minimum size of '%min%' but '%size%' were detected",
117  "One or more files can not be read" => "One or more files can not be read",
118 
119  // Zend_Validate_File_Hash
120  "File '%value%' does not match the given hashes" => "File '%value%' does not match the given hashes",
121  "A hash could not be evaluated for the given file" => "A hash could not be evaluated for the given file",
122  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
123 
124  // Zend_Validate_File_ImageSize
125  "Maximum allowed width for image '%value%' should be '%maxwidth%' but '%width%' detected" => "Maximum allowed width for image '%value%' should be '%maxwidth%' but '%width%' detected",
126  "Minimum expected width for image '%value%' should be '%minwidth%' but '%width%' detected" => "Minimum expected width for image '%value%' should be '%minwidth%' but '%width%' detected",
127  "Maximum allowed height for image '%value%' should be '%maxheight%' but '%height%' detected" => "Maximum allowed height for image '%value%' should be '%maxheight%' but '%height%' detected",
128  "Minimum expected height for image '%value%' should be '%minheight%' but '%height%' detected" => "Minimum expected height for image '%value%' should be '%minheight%' but '%height%' detected",
129  "The size of image '%value%' could not be detected" => "The size of image '%value%' could not be detected",
130  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
131 
132  // Zend_Validate_File_IsCompressed
133  "File '%value%' is not compressed, '%type%' detected" => "File '%value%' is not compressed, '%type%' detected",
134  "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
135  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
136 
137  // Zend_Validate_File_IsImage
138  "File '%value%' is no image, '%type%' detected" => "File '%value%' is no image, '%type%' detected",
139  "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
140  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
141 
142  // Zend_Validate_File_Md5
143  "File '%value%' does not match the given md5 hashes" => "File '%value%' does not match the given md5 hashes",
144  "A md5 hash could not be evaluated for the given file" => "A md5 hash could not be evaluated for the given file",
145  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
146 
147  // Zend_Validate_File_MimeType
148  "File '%value%' has a false mimetype of '%type%'" => "File '%value%' has a false mimetype of '%type%'",
149  "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
150  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
151 
152  // Zend_Validate_File_NotExists
153  "File '%value%' exists" => "File '%value%' exists",
154 
155  // Zend_Validate_File_Sha1
156  "File '%value%' does not match the given sha1 hashes" => "File '%value%' does not match the given sha1 hashes",
157  "A sha1 hash could not be evaluated for the given file" => "A sha1 hash could not be evaluated for the given file",
158  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
159 
160  // Zend_Validate_File_Size
161  "Maximum allowed size for file '%value%' is '%max%' but '%size%' detected" => "Maximum allowed size for file '%value%' is '%max%' but '%size%' detected",
162  "Minimum expected size for file '%value%' is '%min%' but '%size%' detected" => "Minimum expected size for file '%value%' is '%min%' but '%size%' detected",
163  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
164 
165  // Zend_Validate_File_Upload
166  "File '%value%' exceeds the defined ini size" => "File '%value%' exceeds the defined ini size",
167  "File '%value%' exceeds the defined form size" => "File '%value%' exceeds the defined form size",
168  "File '%value%' was only partially uploaded" => "File '%value%' was only partially uploaded",
169  "File '%value%' was not uploaded" => "File '%value%' was not uploaded",
170  "No temporary directory was found for file '%value%'" => "No temporary directory was found for file '%value%'",
171  "File '%value%' can't be written" => "File '%value%' can't be written",
172  "A PHP extension returned an error while uploading the file '%value%'" => "A PHP extension returned an error while uploading the file '%value%'",
173  "File '%value%' was illegally uploaded. This could be a possible attack" => "File '%value%' was illegally uploaded. This could be a possible attack",
174  "File '%value%' was not found" => "File '%value%' was not found",
175  "Unknown error while uploading file '%value%'" => "Unknown error while uploading file '%value%'",
176 
177  // Zend_Validate_File_WordCount
178  "Too much words, maximum '%max%' are allowed but '%count%' were counted" => "Too much words, maximum '%max%' are allowed but '%count%' were counted",
179  "Too less words, minimum '%min%' are expected but '%count%' were counted" => "Too less words, minimum '%min%' are expected but '%count%' were counted",
180  "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
181 
182  // Zend_Validate_Float
183  "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
184  "'%value%' does not appear to be a float" => "'%value%' does not appear to be a float",
185 
186  // Zend_Validate_GreaterThan
187  "'%value%' is not greater than '%min%'" => "'%value%' is not greater than '%min%'",
188 
189  // Zend_Validate_Hex
190  "Invalid type given. String expected" => "Invalid type given. String expected",
191  "'%value%' has not only hexadecimal digit characters" => "'%value%' has not only hexadecimal digit characters",
192 
193  // Zend_Validate_Hostname
194  "Invalid type given. String expected" => "Invalid type given. String expected",
195  "'%value%' appears to be an IP address, but IP addresses are not allowed" => "'%value%' appears to be an IP address, but IP addresses are not allowed",
196  "'%value%' appears to be a DNS hostname but cannot match TLD against known list" => "'%value%' appears to be a DNS hostname but cannot match TLD against known list",
197  "'%value%' appears to be a DNS hostname but contains a dash in an invalid position" => "'%value%' appears to be a DNS hostname but contains a dash in an invalid position",
198  "'%value%' appears to be a DNS hostname but cannot match against hostname schema for TLD '%tld%'" => "'%value%' appears to be a DNS hostname but cannot match against hostname schema for TLD '%tld%'",
199  "'%value%' appears to be a DNS hostname but cannot extract TLD part" => "'%value%' appears to be a DNS hostname but cannot extract TLD part",
200  "'%value%' does not match the expected structure for a DNS hostname" => "'%value%' does not match the expected structure for a DNS hostname",
201  "'%value%' does not appear to be a valid local network name" => "'%value%' does not appear to be a valid local network name",
202  "'%value%' appears to be a local network name but local network names are not allowed" => "'%value%' appears to be a local network name but local network names are not allowed",
203  "'%value%' appears to be a DNS hostname but the given punycode notation cannot be decoded" => "'%value%' appears to be a DNS hostname but the given punycode notation cannot be decoded",
204 
205  // Zend_Validate_Iban
206  "Unknown country within the IBAN '%value%'" => "Unknown country within the IBAN '%value%'",
207  "'%value%' has a false IBAN format" => "'%value%' has a false IBAN format",
208  "'%value%' has failed the IBAN check" => "'%value%' has failed the IBAN check",
209 
210  // Zend_Validate_Identical
211  "The two given tokens do not match" => "The two given tokens do not match",
212  "No token was provided to match against" => "No token was provided to match against",
213 
214  // Zend_Validate_InArray
215  "'%value%' was not found in the haystack" => "'%value%' was not found in the haystack",
216 
217  // Zend_Validate_Int
218  "Invalid type given. String or integer expected" => "Invalid type given. String or integer expected",
219  "'%value%' does not appear to be an integer" => "'%value%' does not appear to be an integer",
220 
221  // Zend_Validate_Ip
222  "Invalid type given. String expected" => "Invalid type given. String expected",
223  "'%value%' does not appear to be a valid IP address" => "'%value%' does not appear to be a valid IP address",
224 
225  // Zend_Validate_Isbn
226  "Invalid type given. String or integer expected" => "Invalid type given. String or integer expected",
227  "'%value%' is not a valid ISBN number" => "'%value%' is not a valid ISBN number",
228 
229  // Zend_Validate_LessThan
230  "'%value%' is not less than '%max%'" => "'%value%' is not less than '%max%'",
231 
232  // Zend_Validate_NotEmpty
233  "Invalid type given. String, integer, float, boolean or array expected" => "Invalid type given. String, integer, float, boolean or array expected",
234  "Value is required and can't be empty" => "Value is required and can't be empty",
235 
236  // Zend_Validate_PostCode
237  "Invalid type given. String or integer expected" => "Invalid type given. String or integer expected",
238  "'%value%' does not appear to be a postal code" => "'%value%' does not appear to be a postal code",
239 
240  // Zend_Validate_Regex
241  "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
242  "'%value%' does not match against pattern '%pattern%'" => "'%value%' does not match against pattern '%pattern%'",
243  "There was an internal error while using the pattern '%pattern%'" => "There was an internal error while using the pattern '%pattern%'",
244 
245  // Zend_Validate_Sitemap_Changefreq
246  "'%value%' is not a valid sitemap changefreq" => "'%value%' is not a valid sitemap changefreq",
247  "Invalid type given. String expected" => "Invalid type given. String expected",
248 
249  // Zend_Validate_Sitemap_Lastmod
250  "'%value%' is not a valid sitemap lastmod" => "'%value%' is not a valid sitemap lastmod",
251  "Invalid type given. String expected" => "Invalid type given. String expected",
252 
253  // Zend_Validate_Sitemap_Loc
254  "'%value%' is not a valid sitemap location" => "'%value%' is not a valid sitemap location",
255  "Invalid type given. String expected" => "Invalid type given. String expected",
256 
257  // Zend_Validate_Sitemap_Priority
258  "'%value%' is not a valid sitemap priority" => "'%value%' is not a valid sitemap priority",
259  "Invalid type given. Numeric string, integer or float expected" => "Invalid type given. Numeric string, integer or float expected",
260 
261  // Zend_Validate_StringLength
262  "Invalid type given. String expected" => "Invalid type given. String expected",
263  "'%value%' is less than %min% characters long" => "'%value%' is less than %min% characters long",
264  "'%value%' is more than %max% characters long" => "'%value%' is more than %max% characters long",
265 );