Zend_Validate.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Translate
  17. * @subpackage Ressource
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id:$
  21. */
  22. /**
  23. * EN-Revision: 22668
  24. */
  25. return array(
  26. // Zend_Validate_Alnum
  27. "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
  28. "'%value%' contains characters which are non alphabetic and no digits" => "'%value%' contains characters which are non alphabetic and no digits",
  29. "'%value%' is an empty string" => "'%value%' is an empty string",
  30. // Zend_Validate_Alpha
  31. "Invalid type given. String expected" => "Invalid type given. String expected",
  32. "'%value%' contains non alphabetic characters" => "'%value%' contains non alphabetic characters",
  33. "'%value%' is an empty string" => "'%value%' is an empty string",
  34. // Zend_Validate_Barcode
  35. "'%value%' failed checksum validation" => "'%value%' failed checksum validation",
  36. "'%value%' contains invalid characters" => "'%value%' contains invalid characters",
  37. "'%value%' should have a length of %length% characters" => "'%value%' should have a length of %length% characters",
  38. "Invalid type given. String expected" => "Invalid type given. String expected",
  39. // Zend_Validate_Between
  40. "'%value%' is not between '%min%' and '%max%', inclusively" => "'%value%' is not between '%min%' and '%max%', inclusively",
  41. "'%value%' is not strictly between '%min%' and '%max%'" => "'%value%' is not strictly between '%min%' and '%max%'",
  42. // Zend_Validate_Callback
  43. "'%value%' is not valid" => "'%value%' is not valid",
  44. "An exception has been raised within the callback" => "An exception has been raised within the callback",
  45. // Zend_Validate_Ccnum
  46. "'%value%' must contain between 13 and 19 digits" => "'%value%' must contain between 13 and 19 digits",
  47. "Luhn algorithm (mod-10 checksum) failed on '%value%'" => "Luhn algorithm (mod-10 checksum) failed on '%value%'",
  48. // Zend_Validate_CreditCard
  49. "'%value%' seems to contain an invalid checksum" => "'%value%' seems to contain an invalid checksum",
  50. "'%value%' must contain only digits" => "'%value%' must contain only digits",
  51. "Invalid type given. String expected" => "Invalid type given. String expected",
  52. "'%value%' contains an invalid amount of digits" => "'%value%' contains an invalid amount of digits",
  53. "'%value%' is not from an allowed institute" => "'%value%' is not from an allowed institute",
  54. "'%value%' seems to be an invalid creditcard number" => "'%value%' seems to be an invalid creditcard number",
  55. "An exception has been raised while validating '%value%'" => "An exception has been raised while validating '%value%'",
  56. // Zend_Validate_Date
  57. "Invalid type given. String, integer, array or Zend_Date expected" => "Invalid type given. String, integer, array or Zend_Date expected",
  58. "'%value%' does not appear to be a valid date" => "'%value%' does not appear to be a valid date",
  59. "'%value%' does not fit the date format '%format%'" => "'%value%' does not fit the date format '%format%'",
  60. // Zend_Validate_Db_Abstract
  61. "No record matching '%value%' was found" => "No record matching '%value%' was found",
  62. "A record matching '%value%' was found" => "A record matching '%value%' was found",
  63. // Zend_Validate_Digits
  64. "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
  65. "'%value%' must contain only digits" => "'%value%' must contain only digits",
  66. "'%value%' is an empty string" => "'%value%' is an empty string",
  67. // Zend_Validate_EmailAddress
  68. "Invalid type given. String expected" => "Invalid type given. String expected",
  69. "'%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",
  70. "'%hostname%' is not a valid hostname for email address '%value%'" => "'%hostname%' is not a valid hostname for email address '%value%'",
  71. "'%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%'",
  72. "'%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",
  73. "'%localPart%' can not be matched against dot-atom format" => "'%localPart%' can not be matched against dot-atom format",
  74. "'%localPart%' can not be matched against quoted-string format" => "'%localPart%' can not be matched against quoted-string format",
  75. "'%localPart%' is not a valid local part for email address '%value%'" => "'%localPart%' is not a valid local part for email address '%value%'",
  76. "'%value%' exceeds the allowed length" => "'%value%' exceeds the allowed length",
  77. // Zend_Validate_File_Count
  78. "Too many files, maximum '%max%' are allowed but '%count%' are given" => "Too many files, maximum '%max%' are allowed but '%count%' are given",
  79. "Too few files, minimum '%min%' are expected but '%count%' are given" => "Too few files, minimum '%min%' are expected but '%count%' are given",
  80. // Zend_Validate_File_Crc32
  81. "File '%value%' does not match the given crc32 hashes" => "File '%value%' does not match the given crc32 hashes",
  82. "A crc32 hash could not be evaluated for the given file" => "A crc32 hash could not be evaluated for the given file",
  83. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  84. // Zend_Validate_File_ExcludeExtension
  85. "File '%value%' has a false extension" => "File '%value%' has a false extension",
  86. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  87. // Zend_Validate_File_ExcludeMimeType
  88. "File '%value%' has a false mimetype of '%type%'" => "File '%value%' has a false mimetype of '%type%'",
  89. "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
  90. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  91. // Zend_Validate_File_Exists
  92. "File '%value%' does not exist" => "File '%value%' does not exist",
  93. // Zend_Validate_File_Extension
  94. "File '%value%' has a false extension" => "File '%value%' has a false extension",
  95. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  96. // Zend_Validate_File_FilesSize
  97. "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",
  98. "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",
  99. "One or more files can not be read" => "One or more files can not be read",
  100. // Zend_Validate_File_Hash
  101. "File '%value%' does not match the given hashes" => "File '%value%' does not match the given hashes",
  102. "A hash could not be evaluated for the given file" => "A hash could not be evaluated for the given file",
  103. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  104. // Zend_Validate_File_ImageSize
  105. "Maximum allowed width for image '%value%' should be '%maxwidth%' but '%width%' detected" => "Maximum allowed width for image '%value%' should be '%maxwidth%' but '%width%' detected",
  106. "Minimum expected width for image '%value%' should be '%minwidth%' but '%width%' detected" => "Minimum expected width for image '%value%' should be '%minwidth%' but '%width%' detected",
  107. "Maximum allowed height for image '%value%' should be '%maxheight%' but '%height%' detected" => "Maximum allowed height for image '%value%' should be '%maxheight%' but '%height%' detected",
  108. "Minimum expected height for image '%value%' should be '%minheight%' but '%height%' detected" => "Minimum expected height for image '%value%' should be '%minheight%' but '%height%' detected",
  109. "The size of image '%value%' could not be detected" => "The size of image '%value%' could not be detected",
  110. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  111. // Zend_Validate_File_IsCompressed
  112. "File '%value%' is not compressed, '%type%' detected" => "File '%value%' is not compressed, '%type%' detected",
  113. "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
  114. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  115. // Zend_Validate_File_IsImage
  116. "File '%value%' is no image, '%type%' detected" => "File '%value%' is no image, '%type%' detected",
  117. "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
  118. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  119. // Zend_Validate_File_Md5
  120. "File '%value%' does not match the given md5 hashes" => "File '%value%' does not match the given md5 hashes",
  121. "A md5 hash could not be evaluated for the given file" => "A md5 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. // Zend_Validate_File_MimeType
  124. "File '%value%' has a false mimetype of '%type%'" => "File '%value%' has a false mimetype of '%type%'",
  125. "The mimetype of file '%value%' could not be detected" => "The mimetype of file '%value%' could not be detected",
  126. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  127. // Zend_Validate_File_NotExists
  128. "File '%value%' exists" => "File '%value%' exists",
  129. // Zend_Validate_File_Sha1
  130. "File '%value%' does not match the given sha1 hashes" => "File '%value%' does not match the given sha1 hashes",
  131. "A sha1 hash could not be evaluated for the given file" => "A sha1 hash could not be evaluated for the given file",
  132. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  133. // Zend_Validate_File_Size
  134. "Maximum allowed size for file '%value%' is '%max%' but '%size%' detected" => "Maximum allowed size for file '%value%' is '%max%' but '%size%' detected",
  135. "Minimum expected size for file '%value%' is '%min%' but '%size%' detected" => "Minimum expected size for file '%value%' is '%min%' but '%size%' detected",
  136. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  137. // Zend_Validate_File_Upload
  138. "File '%value%' exceeds the defined ini size" => "File '%value%' exceeds the defined ini size",
  139. "File '%value%' exceeds the defined form size" => "File '%value%' exceeds the defined form size",
  140. "File '%value%' was only partially uploaded" => "File '%value%' was only partially uploaded",
  141. "File '%value%' was not uploaded" => "File '%value%' was not uploaded",
  142. "No temporary directory was found for file '%value%'" => "No temporary directory was found for file '%value%'",
  143. "File '%value%' can't be written" => "File '%value%' can't be written",
  144. "A PHP extension returned an error while uploading the file '%value%'" => "A PHP extension returned an error while uploading the file '%value%'",
  145. "File '%value%' was illegally uploaded. This could be a possible attack" => "File '%value%' was illegally uploaded. This could be a possible attack",
  146. "File '%value%' was not found" => "File '%value%' was not found",
  147. "Unknown error while uploading file '%value%'" => "Unknown error while uploading file '%value%'",
  148. // Zend_Validate_File_WordCount
  149. "Too much words, maximum '%max%' are allowed but '%count%' were counted" => "Too much words, maximum '%max%' are allowed but '%count%' were counted",
  150. "Too less words, minimum '%min%' are expected but '%count%' were counted" => "Too less words, minimum '%min%' are expected but '%count%' were counted",
  151. "File '%value%' is not readable or does not exist" => "File '%value%' is not readable or does not exist",
  152. // Zend_Validate_Float
  153. "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
  154. "'%value%' does not appear to be a float" => "'%value%' does not appear to be a float",
  155. // Zend_Validate_GreaterThan
  156. "'%value%' is not greater than '%min%'" => "'%value%' is not greater than '%min%'",
  157. // Zend_Validate_Hex
  158. "Invalid type given. String expected" => "Invalid type given. String expected",
  159. "'%value%' has not only hexadecimal digit characters" => "'%value%' has not only hexadecimal digit characters",
  160. // Zend_Validate_Hostname
  161. "Invalid type given. String expected" => "Invalid type given. String expected",
  162. "'%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",
  163. "'%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",
  164. "'%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",
  165. "'%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%'",
  166. "'%value%' appears to be a DNS hostname but cannot extract TLD part" => "'%value%' appears to be a DNS hostname but cannot extract TLD part",
  167. "'%value%' does not match the expected structure for a DNS hostname" => "'%value%' does not match the expected structure for a DNS hostname",
  168. "'%value%' does not appear to be a valid local network name" => "'%value%' does not appear to be a valid local network name",
  169. "'%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",
  170. "'%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",
  171. // Zend_Validate_Iban
  172. "Unknown country within the IBAN '%value%'" => "Unknown country within the IBAN '%value%'",
  173. "'%value%' has a false IBAN format" => "'%value%' has a false IBAN format",
  174. "'%value%' has failed the IBAN check" => "'%value%' has failed the IBAN check",
  175. // Zend_Validate_Identical
  176. "The two given tokens do not match" => "The two given tokens do not match",
  177. "No token was provided to match against" => "No token was provided to match against",
  178. // Zend_Validate_InArray
  179. "'%value%' was not found in the haystack" => "'%value%' was not found in the haystack",
  180. // Zend_Validate_Int
  181. "Invalid type given. String or integer expected" => "Invalid type given. String or integer expected",
  182. "'%value%' does not appear to be an integer" => "'%value%' does not appear to be an integer",
  183. // Zend_Validate_Ip
  184. "Invalid type given. String expected" => "Invalid type given. String expected",
  185. "'%value%' does not appear to be a valid IP address" => "'%value%' does not appear to be a valid IP address",
  186. // Zend_Validate_Isbn
  187. "Invalid type given. String or integer expected" => "Invalid type given. String or integer expected",
  188. "'%value%' is not a valid ISBN number" => "'%value%' is not a valid ISBN number",
  189. // Zend_Validate_LessThan
  190. "'%value%' is not less than '%max%'" => "'%value%' is not less than '%max%'",
  191. // Zend_Validate_NotEmpty
  192. "Invalid type given. String, integer, float, boolean or array expected" => "Invalid type given. String, integer, float, boolean or array expected",
  193. "Value is required and can't be empty" => "Value is required and can't be empty",
  194. // Zend_Validate_PostCode
  195. "Invalid type given. String or integer expected" => "Invalid type given. String or integer expected",
  196. "'%value%' does not appear to be a postal code" => "'%value%' does not appear to be a postal code",
  197. // Zend_Validate_Regex
  198. "Invalid type given. String, integer or float expected" => "Invalid type given. String, integer or float expected",
  199. "'%value%' does not match against pattern '%pattern%'" => "'%value%' does not match against pattern '%pattern%'",
  200. "There was an internal error while using the pattern '%pattern%'" => "There was an internal error while using the pattern '%pattern%'",
  201. // Zend_Validate_Sitemap_Changefreq
  202. "'%value%' is not a valid sitemap changefreq" => "'%value%' is not a valid sitemap changefreq",
  203. "Invalid type given. String expected" => "Invalid type given. String expected",
  204. // Zend_Validate_Sitemap_Lastmod
  205. "'%value%' is not a valid sitemap lastmod" => "'%value%' is not a valid sitemap lastmod",
  206. "Invalid type given. String expected" => "Invalid type given. String expected",
  207. // Zend_Validate_Sitemap_Loc
  208. "'%value%' is not a valid sitemap location" => "'%value%' is not a valid sitemap location",
  209. "Invalid type given. String expected" => "Invalid type given. String expected",
  210. // Zend_Validate_Sitemap_Priority
  211. "'%value%' is not a valid sitemap priority" => "'%value%' is not a valid sitemap priority",
  212. "Invalid type given. Numeric string, integer or float expected" => "Invalid type given. Numeric string, integer or float expected",
  213. // Zend_Validate_StringLength
  214. "Invalid type given. String expected" => "Invalid type given. String expected",
  215. "'%value%' is less than %min% characters long" => "'%value%' is less than %min% characters long",
  216. "'%value%' is more than %max% characters long" => "'%value%' is more than %max% characters long",
  217. );