Zend_Validate-Messages.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- EN-Revision: 15617 -->
  3. <!-- Reviewed: no -->
  4. <sect1 id="zend.validate.messages">
  5. <title>Prüfungsmeldungen</title>
  6. <para>
  7. Jede Prüfung die auf <classname>Zend_Validate</classname> basiert, bietet im Fall einer
  8. fehlgeschlagen Prüfung eine oder mehrere Meldungen an. Diese Information kann verwendet
  9. werden um eigene Meldungen zu setzen, oder um die Meldungen die eine Prüfung zurückgeben
  10. kann zu übersetzen. Die folgende Tabelle zeigt alle vorhandenen Meldungen welche von
  11. jeder einzelner Prüfung zurückgegeben wird.
  12. </para>
  13. <table id="zend.validate.messages.table">
  14. <title>Vorhandene Prüfmeldungen</title>
  15. <tgroup cols="4">
  16. <thead>
  17. <row>
  18. <entry>Prüfung</entry>
  19. <entry>Konstante</entry>
  20. <entry>Meldung</entry>
  21. </row>
  22. </thead>
  23. <tbody>
  24. <row>
  25. <entry morerows="1" valign="middle">Alnum</entry>
  26. <entry>NOT_ALNUM</entry>
  27. <entry>'%value%' has not only alphabetic and digit characters</entry>
  28. </row>
  29. <row>
  30. <entry>STRING_EMPTY</entry>
  31. <entry>'%value%' is an empty string</entry>
  32. </row>
  33. <row>
  34. <entry morerows="1" valign="middle">Alpha</entry>
  35. <entry>NOT_ALPHA</entry>
  36. <entry>'%value%' has not only alphabetic characters</entry>
  37. </row>
  38. <row>
  39. <entry>STRING_EMPTY</entry>
  40. <entry>'%value%' is an empty string</entry>
  41. </row>
  42. <row>
  43. <entry>Barcode</entry>
  44. <entry>---</entry>
  45. <entry>messages are thrown by a subclass</entry>
  46. </row>
  47. <row>
  48. <entry morerows="2" valign="middle">Barcode_Ean13</entry>
  49. <entry>INVALID</entry>
  50. <entry>'%value%' is an invalid EAN-13 barcode</entry>
  51. </row>
  52. <row>
  53. <entry>INVALID_LENGTH</entry>
  54. <entry>'%value%' should be 13 characters</entry>
  55. </row>
  56. <row>
  57. <entry>NOT_NUMERIC</entry>
  58. <entry>'%value%' should contain only numeric characters</entry>
  59. </row>
  60. <row>
  61. <entry morerows="1" valign="middle">Barcode_UpcA</entry>
  62. <entry>INVALID</entry>
  63. <entry>'%value%' is an invalid UPC-A barcode</entry>
  64. </row>
  65. <row>
  66. <entry>INVALID_LENGTH</entry>
  67. <entry>'%value%' should be 12 characters</entry>
  68. </row>
  69. <row>
  70. <entry morerows="1" valign="middle">Between</entry>
  71. <entry>NOT_BETWEEN</entry>
  72. <entry>'%value%' is not between '%min%' and '%max%', inclusively</entry>
  73. </row>
  74. <row>
  75. <entry>NOT_BETWEEN_STRICT</entry>
  76. <entry>'%value%' is not strictly between '%min%' and '%max%'</entry>
  77. </row>
  78. <row>
  79. <entry morerows="1" valign="middle">Ccnum</entry>
  80. <entry>LENGTH</entry>
  81. <entry>'%value%' must contain between 13 and 19 digits</entry>
  82. </row>
  83. <row>
  84. <entry>CHECKSUM</entry>
  85. <entry>Luhn algorithm (mod-10 checksum) failed on '%value%'</entry>
  86. </row>
  87. <row>
  88. <entry morerows="2" valign="middle">Date</entry>
  89. <entry>FALSEFORMAT</entry>
  90. <entry>'%value%' does not fit given date format</entry>
  91. </row>
  92. <row>
  93. <entry>INVALID</entry>
  94. <entry>'%value%' does not appear to be a valid date</entry>
  95. </row>
  96. <row>
  97. <entry>NOT_YYYY_MM_DD</entry>
  98. <entry>'%value%' is not of the format YYYY-MM-DD</entry>
  99. </row>
  100. <row>
  101. <entry morerows="1" valign="middle">Digits</entry>
  102. <entry>NOT_DIGITS</entry>
  103. <entry>'%value%' contains not only digit characters</entry>
  104. </row>
  105. <row>
  106. <entry>STRING_EMPTY</entry>
  107. <entry>'%value%' is an empty string</entry>
  108. </row>
  109. <row>
  110. <entry morerows="6" valign="middle">EmailAddress</entry>
  111. <entry>INVALID</entry>
  112. <entry>
  113. '%value%' is not a valid email address in the basic format
  114. local-part@hostname
  115. </entry>
  116. </row>
  117. <row>
  118. <entry>INVALID_HOSTNAME</entry>
  119. <entry>'%hostname%' is not a valid hostname for email address '%value%'</entry>
  120. </row>
  121. <row>
  122. <entry>INVALID_MX_RECORD</entry>
  123. <entry>
  124. '%hostname%' does not appear to have a valid MX record for the email address
  125. '%value%'
  126. </entry>
  127. </row>
  128. <row>
  129. <entry>DOT_ATOM</entry>
  130. <entry>'%localPart%' not matched against dot-atom format</entry>
  131. </row>
  132. <row>
  133. <entry>QUOTED_STRING</entry>
  134. <entry>'%localPart%' not matched against quoted-string format</entry>
  135. </row>
  136. <row>
  137. <entry>INVALID_LOCAL_PART</entry>
  138. <entry>
  139. '%localPart%' is not a valid local part for email address '%value%'
  140. </entry>
  141. </row>
  142. <row>
  143. <entry>LENGTH_EXCEEDED</entry>
  144. <entry>'%value%' exceeds the allowed length</entry>
  145. </row>
  146. <row>
  147. <entry morerows="1" valign="middle">File_Count</entry>
  148. <entry>TOO_MUCH</entry>
  149. <entry>
  150. Too much files, maximum '%max%' are allowed but '%count%' are given
  151. </entry>
  152. </row>
  153. <row>
  154. <entry>TOO_LESS</entry>
  155. <entry>
  156. Too less files, minimum '%min%' are expected but '%count%' are given
  157. </entry>
  158. </row>
  159. <row>
  160. <entry morerows="2" valign="middle">File_Crc32</entry>
  161. <entry>DOES_NOT_MATCH</entry>
  162. <entry>The file '%value%' does not match the given crc32 hashes</entry>
  163. </row>
  164. <row>
  165. <entry>NOT_DETECTED</entry>
  166. <entry>There was no crc32 hash detected for the given file</entry>
  167. </row>
  168. <row>
  169. <entry>NOT_FOUND</entry>
  170. <entry>The file '%value%' could not be found</entry>
  171. </row>
  172. <row>
  173. <entry morerows="1" valign="middle">File_ExcludeExtension</entry>
  174. <entry>FALSE_EXTENSION</entry>
  175. <entry>The file '%value%' has a false extension</entry>
  176. </row>
  177. <row>
  178. <entry>NOT_FOUND</entry>
  179. <entry>The file '%value%' was not found</entry>
  180. </row>
  181. <row>
  182. <entry morerows="2" valign="middle">File_ExcludeMimeType</entry>
  183. <entry>FALSE_TYPE</entry>
  184. <entry>The file '%value%' has a false mimetype of '%type%'</entry>
  185. </row>
  186. <row>
  187. <entry>NOT_DETECTED</entry>
  188. <entry>The mimetype of file '%value%' could not been detected</entry>
  189. </row>
  190. <row>
  191. <entry>NOT_READABLE</entry>
  192. <entry>The file '%value%' can not be read</entry>
  193. </row>
  194. <row>
  195. <entry morerows="2" valign="middle">File_Exists</entry>
  196. <entry>DOES_NOT_EXIST</entry>
  197. <entry>The file '%value%' does not exist</entry>
  198. </row>
  199. <row>
  200. <entry morerows="1" valign="middle">File_Extension</entry>
  201. <entry>FALSE_EXTENSION</entry>
  202. <entry>The file '%value%' has a false extension</entry>
  203. </row>
  204. <row>
  205. <entry>NOT_FOUND</entry>
  206. <entry>The file '%value%' was not found</entry>
  207. </row>
  208. <row>
  209. <entry morerows="2" valign="middle">File_FilesSize</entry>
  210. <entry>TOO_BIG</entry>
  211. <entry>
  212. All files in sum should have a maximum size of '%max%' but '%size%' were
  213. detected
  214. </entry>
  215. </row>
  216. <row>
  217. <entry>TOO_SMALL</entry>
  218. <entry>
  219. All files in sum should have a minimum size of '%min%' but '%size%' were
  220. detected
  221. </entry>
  222. </row>
  223. <row>
  224. <entry>NOT_READABLE</entry>
  225. <entry>One or more files can not be read</entry>
  226. </row>
  227. <row>
  228. <entry morerows="2" valign="middle">File_Hash</entry>
  229. <entry>DOES_NOT_MATCH</entry>
  230. <entry>The file '%value%' does not match the given hashes</entry>
  231. </row>
  232. <row>
  233. <entry>NOT_DETECTED</entry>
  234. <entry>There was no hash detected for the given file</entry>
  235. </row>
  236. <row>
  237. <entry>NOT_FOUND</entry>
  238. <entry>The file '%value%' could not be found</entry>
  239. </row>
  240. <row>
  241. <entry morerows="5" valign="middle">File_ImageSize</entry>
  242. <entry>WIDTH_TOO_BIG</entry>
  243. <entry>
  244. Maximum allowed width for image '%value%' should be '%maxwidth%' but
  245. '%width%' detected
  246. </entry>
  247. </row>
  248. <row>
  249. <entry>WIDTH_TOO_SMALL</entry>
  250. <entry>
  251. Minimum expected width for image '%value%' should be '%minwidth%' but
  252. '%width%' detected
  253. </entry>
  254. </row>
  255. <row>
  256. <entry>HEIGHT_TOO_BIG</entry>
  257. <entry>
  258. Maximum allowed height for image '%value%' should be '%maxheight%' but
  259. '%height%' detected
  260. </entry>
  261. </row>
  262. <row>
  263. <entry>HEIGHT_TOO_SMALL</entry>
  264. <entry>
  265. Minimum expected height for image '%value%' should be '%minheight%' but
  266. '%height%' detected
  267. </entry>
  268. </row>
  269. <row>
  270. <entry>NOT_DETECTED</entry>
  271. <entry>The size of image '%value%' could not be detected</entry>
  272. </row>
  273. <row>
  274. <entry>NOT_READABLE</entry>
  275. <entry>The image '%value%' can not be read</entry>
  276. </row>
  277. <row>
  278. <entry morerows="2" valign="middle">File_IsCompressed</entry>
  279. <entry>FALSE_TYPE</entry>
  280. <entry>The file '%value%' is not compressed, '%type%' detected</entry>
  281. </row>
  282. <row>
  283. <entry>NOT_DETECTED</entry>
  284. <entry>The mimetype of file '%value%' could not been detected</entry>
  285. </row>
  286. <row>
  287. <entry>NOT_READABLE</entry>
  288. <entry>The file '%value%' can not be read</entry>
  289. </row>
  290. <row>
  291. <entry morerows="2" valign="middle">File_IsImage</entry>
  292. <entry>FALSE_TYPE</entry>
  293. <entry>The file '%value%' is no image, '%type%' detected</entry>
  294. </row>
  295. <row>
  296. <entry>NOT_DETECTED</entry>
  297. <entry>The mimetype of file '%value%' could not been detected</entry>
  298. </row>
  299. <row>
  300. <entry>NOT_READABLE</entry>
  301. <entry>The file '%value%' can not be read</entry>
  302. </row>
  303. <row>
  304. <entry morerows="2" valign="middle">File_Md5</entry>
  305. <entry>DOES_NOT_MATCH</entry>
  306. <entry>The file '%value%' does not match the given md5 hashes</entry>
  307. </row>
  308. <row>
  309. <entry>NOT_DETECTED</entry>
  310. <entry>There was no md5 hash detected for the given file</entry>
  311. </row>
  312. <row>
  313. <entry>NOT_FOUND</entry>
  314. <entry>The file '%value%' could not be found</entry>
  315. </row>
  316. <row>
  317. <entry morerows="2" valign="middle">File_MimeType</entry>
  318. <entry>FALSE_TYPE</entry>
  319. <entry>The file '%value%' has a false mimetype of '%type%'</entry>
  320. </row>
  321. <row>
  322. <entry>NOT_DETECTED</entry>
  323. <entry>The mimetype of file '%value%' could not been detected</entry>
  324. </row>
  325. <row>
  326. <entry>NOT_READABLE</entry>
  327. <entry>The file '%value%' can not be read</entry>
  328. </row>
  329. <row>
  330. <entry>File_NotExists</entry>
  331. <entry>DOES_EXIST</entry>
  332. <entry>The file '%value%' does exist</entry>
  333. </row>
  334. <row>
  335. <entry morerows="2" valign="middle">File_Sha1</entry>
  336. <entry>DOES_NOT_MATCH</entry>
  337. <entry>The file '%value%' does not match the given sha1 hashes</entry>
  338. </row>
  339. <row>
  340. <entry>NOT_DETECTED</entry>
  341. <entry>There was no sha1 hash detected for the given file</entry>
  342. </row>
  343. <row>
  344. <entry>NOT_FOUND</entry>
  345. <entry>The file '%value%' could not be found</entry>
  346. </row>
  347. <row>
  348. <entry morerows="2" valign="middle">File_Size</entry>
  349. <entry>TOO_BIG</entry>
  350. <entry>
  351. Maximum allowed size for file '%value%' is '%max%' but '%size%' detected
  352. </entry>
  353. </row>
  354. <row>
  355. <entry>TOO_SMALL</entry>
  356. <entry>
  357. Minimum expected size for file '%value%' is '%min%' but '%size%' detected
  358. </entry>
  359. </row>
  360. <row>
  361. <entry>NOT_FOUND</entry>
  362. <entry>The file '%value%' could not be found</entry>
  363. </row>
  364. <row>
  365. <entry morerows="9" valign="middle">File_Upload</entry>
  366. <entry>INI_SIZE</entry>
  367. <entry>The file '%value%' exceeds the defined ini size</entry>
  368. </row>
  369. <row>
  370. <entry>FORM_SIZE</entry>
  371. <entry>The file '%value%' exceeds the defined form size</entry>
  372. </row>
  373. <row>
  374. <entry>PARTIAL</entry>
  375. <entry>The file '%value%' was only partially uploaded</entry>
  376. </row>
  377. <row>
  378. <entry>NO_FILE</entry>
  379. <entry>The file '%value%' was not uploaded</entry>
  380. </row>
  381. <row>
  382. <entry>NO_TMP_DIR</entry>
  383. <entry>No temporary directory was found for the file '%value%'</entry>
  384. </row>
  385. <row>
  386. <entry>CANT_WRITE</entry>
  387. <entry>The file '%value%' can't be written</entry>
  388. </row>
  389. <row>
  390. <entry>EXTENSION</entry>
  391. <entry>
  392. The extension returned an error while uploading the file '%value%'
  393. </entry>
  394. </row>
  395. <row>
  396. <entry>ATTACK</entry>
  397. <entry>The file '%value%' was illegal uploaded, possible attack</entry>
  398. </row>
  399. <row>
  400. <entry>FILE_NOT_FOUND</entry>
  401. <entry>The file '%value%' was not found</entry>
  402. </row>
  403. <row>
  404. <entry>UNKNOWN</entry>
  405. <entry>Unknown error while uploading the file '%value%'</entry>
  406. </row>
  407. <row>
  408. <entry morerows="2" valign="middle">File_WordCount</entry>
  409. <entry>TOO_MUCH</entry>
  410. <entry>
  411. Too much words, maximum '%max%' are allowed but '%count%' were counted
  412. </entry>
  413. </row>
  414. <row>
  415. <entry>TOO_LESS</entry>
  416. <entry>
  417. Too less words, minimum '%min%' are expected but '%count%' were counted
  418. </entry>
  419. </row>
  420. <row>
  421. <entry>NOT_FOUND</entry>
  422. <entry>The file '%value%' could not be found</entry>
  423. </row>
  424. <row>
  425. <entry>Float</entry>
  426. <entry>NOT_FLOAT</entry>
  427. <entry>'%value%' does not appear to be a float</entry>
  428. </row>
  429. <row>
  430. <entry>GreaterThan</entry>
  431. <entry>NOT_GREATER</entry>
  432. <entry>'%value%' is not greater than '%min%'</entry>
  433. </row>
  434. <row>
  435. <entry>Hex</entry>
  436. <entry>NOT_HEX</entry>
  437. <entry>'%value%' has not only hexadecimal digit characters</entry>
  438. </row>
  439. <row>
  440. <entry morerows="7" valign="middle">Hostname</entry>
  441. <entry>IP_ADDRESS_NOT_ALLOWED</entry>
  442. <entry>
  443. '%value%' appears to be an IP address, but IP addresses are not allowed
  444. </entry>
  445. </row>
  446. <row>
  447. <entry>UNKNOWN_TLD</entry>
  448. <entry>
  449. '%value%' appears to be a DNS hostname but cannot match TLD against known
  450. list
  451. </entry>
  452. </row>
  453. <row>
  454. <entry>INVALID_DASH</entry>
  455. <entry>
  456. '%value%' appears to be a DNS hostname but contains a dash (-) in an invalid
  457. position
  458. </entry>
  459. </row>
  460. <row>
  461. <entry>INVALID_HOSTNAME_SCHEMA</entry>
  462. <entry>
  463. '%value%' appears to be a DNS hostname but cannot match against hostname
  464. schema for TLD '%tld%'
  465. </entry>
  466. </row>
  467. <row>
  468. <entry>UNDECIPHERABLE_TLD</entry>
  469. <entry>
  470. '%value%' appears to be a DNS hostname but cannot extract TLD part
  471. </entry>
  472. </row>
  473. <row>
  474. <entry>INVALID_HOSTNAME</entry>
  475. <entry>
  476. '%value%' does not match the expected structure for a DNS hostname
  477. </entry>
  478. </row>
  479. <row>
  480. <entry>INVALID_LOCAL_NAME</entry>
  481. <entry>'%value%' does not appear to be a valid local network name</entry>
  482. </row>
  483. <row>
  484. <entry>LOCAL_NAME_NOT_ALLOWED</entry>
  485. <entry>
  486. '%value%' appears to be a local network name but local network names are not
  487. allowed
  488. </entry>
  489. </row>
  490. <row>
  491. <entry morerows="2" valign="middle">Iban</entry>
  492. <entry>NOTSUPPORTED</entry>
  493. <entry>'%value%' does not have IBAN</entry>
  494. </row>
  495. <row>
  496. <entry>FALSEFORMAT</entry>
  497. <entry>'%value%' has a false format</entry>
  498. </row>
  499. <row>
  500. <entry>CHECKFAILED</entry>
  501. <entry>'%value%' has failed the IBAN check</entry>
  502. </row>
  503. <row>
  504. <entry morerows="1" valign="middle">Identical</entry>
  505. <entry>NOT_SAME</entry>
  506. <entry>The token '%token%' does not match the given token '%value%'</entry>
  507. </row>
  508. <row>
  509. <entry>MISSING_TOKEN</entry>
  510. <entry>No token was provided to match against</entry>
  511. </row>
  512. <row>
  513. <entry>InArray</entry>
  514. <entry>NOT_IN_ARRAY</entry>
  515. <entry>'%value%' was not found in the haystack</entry>
  516. </row>
  517. <row>
  518. <entry>Int</entry>
  519. <entry>NOT_INT</entry>
  520. <entry>'%value%' does not appear to be an integer</entry>
  521. </row>
  522. <row>
  523. <entry>Ip</entry>
  524. <entry>NOT_IP_ADDRESS</entry>
  525. <entry>'%value%' does not appear to be a valid IP address</entry>
  526. </row>
  527. <row>
  528. <entry>LessThan</entry>
  529. <entry>NOT_LESS</entry>
  530. <entry>'%value%' is not less than '%max%'</entry>
  531. </row>
  532. <row>
  533. <entry>NotEmpty</entry>
  534. <entry>IS_EMPTY</entry>
  535. <entry>Value is required and can't be empty</entry>
  536. </row>
  537. <row>
  538. <entry>Regex</entry>
  539. <entry>NOT_MATCH</entry>
  540. <entry>'%value%' does not match against pattern '%pattern%'</entry>
  541. </row>
  542. <row>
  543. <entry morerows="1" valign="middle">StringLength</entry>
  544. <entry>TOO_SHORT</entry>
  545. <entry>'%value%' is less than %min% characters long</entry>
  546. </row>
  547. <row>
  548. <entry>TOO_LONG</entry>
  549. <entry>'%value%' is greater than %max% characters long</entry>
  550. </row>
  551. </tbody>
  552. </tgroup>
  553. </table>
  554. <para>
  555. Zusätzlich kann man alle Meldungstemplates einer Prüfung mit der Methode
  556. <code>getMessageTemplates()</code> erhalten. Sie gibt ein Array mit den Meldungen zurück
  557. die eine Prüfung im Fall einer fehlgeschlagenen Prüfung zurückgeben könnte.
  558. </para>
  559. <programlisting language="php"><![CDATA[
  560. $validator = new Zend_Validate_Alnum();
  561. $messages = $validator->getMessageTemplates();
  562. ]]></programlisting>
  563. </sect1>
  564. <!--
  565. vim:se ts=4 sw=4 et:
  566. -->