Zend_Validate-Messages.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- EN-Revision: 17230 -->
  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><constant>NOT_ALNUM</constant></entry>
  27. <entry>'%value%' has not only alphabetic and digit characters</entry>
  28. </row>
  29. <row>
  30. <entry><constant>STRING_EMPTY</constant></entry>
  31. <entry>'%value%' is an empty string</entry>
  32. </row>
  33. <row>
  34. <entry morerows="1" valign="middle">Alpha</entry>
  35. <entry><constant>NOT_ALPHA</constant></entry>
  36. <entry>'%value%' has not only alphabetic characters</entry>
  37. </row>
  38. <row>
  39. <entry><constant>STRING_EMPTY</constant></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><constant>INVALID</constant></entry>
  50. <entry>'%value%' is an invalid <constant>EAN</constant>-13 barcode</entry>
  51. </row>
  52. <row>
  53. <entry><constant>INVALID_LENGTH</constant></entry>
  54. <entry>'%value%' should be 13 characters</entry>
  55. </row>
  56. <row>
  57. <entry><constant>NOT_NUMERIC</constant></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><constant>INVALID</constant></entry>
  63. <entry>'%value%' is an invalid <constant>UPC</constant>-A barcode</entry>
  64. </row>
  65. <row>
  66. <entry><constant>INVALID_LENGTH</constant></entry>
  67. <entry>'%value%' should be 12 characters</entry>
  68. </row>
  69. <row>
  70. <entry morerows="1" valign="middle">Between</entry>
  71. <entry><constant>NOT_BETWEEN</constant></entry>
  72. <entry>'%value%' is not between '%min%' and '%max%', inclusively</entry>
  73. </row>
  74. <row>
  75. <entry><constant>NOT_BETWEEN_STRICT</constant></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><constant>LENGTH</constant></entry>
  81. <entry>'%value%' must contain between 13 and 19 digits</entry>
  82. </row>
  83. <row>
  84. <entry><constant>CHECKSUM</constant></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><constant>FALSEFORMAT</constant></entry>
  90. <entry>'%value%' does not fit given date format</entry>
  91. </row>
  92. <row>
  93. <entry><constant>INVALID</constant></entry>
  94. <entry>'%value%' does not appear to be a valid date</entry>
  95. </row>
  96. <row>
  97. <entry><constant>NOT_YYYY_MM_DD</constant></entry>
  98. <entry>'%value%' is not of the format YYYY-MM-DD</entry>
  99. </row>
  100. <row>
  101. <entry morerows="1" valign="middle">Db_Abstract</entry>
  102. <entry><constant>ERROR_NO_RECORD_FOUND</constant></entry>
  103. <entry>No record matching %value% was found</entry>
  104. </row>
  105. <row>
  106. <entry><constant>ERROR_RECORD_FOUND</constant></entry>
  107. <entry>A record matching %value% was found</entry>
  108. </row>
  109. <row>
  110. <entry morerows="1" valign="middle">Digits</entry>
  111. <entry><constant>NOT_DIGITS</constant></entry>
  112. <entry>'%value%' contains not only digit characters</entry>
  113. </row>
  114. <row>
  115. <entry><constant>STRING_EMPTY</constant></entry>
  116. <entry>'%value%' is an empty string</entry>
  117. </row>
  118. <row>
  119. <entry morerows="7" valign="middle">EmailAddress</entry>
  120. <entry><constant>INVALID</constant></entry>
  121. <entry>
  122. '%value%' is not a valid email address in the basic format
  123. local-part@hostname
  124. </entry>
  125. </row>
  126. <row>
  127. <entry><constant>INVALID_FORMAT</constant></entry>
  128. <entry>
  129. '%value%' is not a valid email address in the basic format
  130. local-part@hostname
  131. </entry>
  132. </row>
  133. <row>
  134. <entry><constant>INVALID_HOSTNAME</constant></entry>
  135. <entry>'%hostname%' is not a valid hostname for email address '%value%'</entry>
  136. </row>
  137. <row>
  138. <entry><constant>INVALID_MX_RECORD</constant></entry>
  139. <entry>
  140. '%hostname%' does not appear to have a valid MX record for the email address
  141. '%value%'
  142. </entry>
  143. </row>
  144. <row>
  145. <entry><constant>DOT_ATOM</constant></entry>
  146. <entry>'%localPart%' not matched against dot-atom format</entry>
  147. </row>
  148. <row>
  149. <entry><constant>QUOTED_STRING</constant></entry>
  150. <entry>'%localPart%' not matched against quoted-string format</entry>
  151. </row>
  152. <row>
  153. <entry><constant>INVALID_LOCAL_PART</constant></entry>
  154. <entry>
  155. '%localPart%' is not a valid local part for email address '%value%'
  156. </entry>
  157. </row>
  158. <row>
  159. <entry><constant>LENGTH_EXCEEDED</constant></entry>
  160. <entry>'%value%' exceeds the allowed length</entry>
  161. </row>
  162. <row>
  163. <entry morerows="1" valign="middle">File_Count</entry>
  164. <entry><constant>TOO_MUCH</constant></entry>
  165. <entry>
  166. Too much files, maximum '%max%' are allowed but '%count%' are given
  167. </entry>
  168. </row>
  169. <row>
  170. <entry><constant>TOO_LESS</constant></entry>
  171. <entry>
  172. Too less files, minimum '%min%' are expected but '%count%' are given
  173. </entry>
  174. </row>
  175. <row>
  176. <entry morerows="2" valign="middle">File_Crc32</entry>
  177. <entry><constant>DOES_NOT_MATCH</constant></entry>
  178. <entry>The file '%value%' does not match the given crc32 hashes</entry>
  179. </row>
  180. <row>
  181. <entry><constant>NOT_DETECTED</constant></entry>
  182. <entry>There was no crc32 hash detected for the given file</entry>
  183. </row>
  184. <row>
  185. <entry><constant>NOT_FOUND</constant></entry>
  186. <entry>The file '%value%' could not be found</entry>
  187. </row>
  188. <row>
  189. <entry morerows="1" valign="middle">File_ExcludeExtension</entry>
  190. <entry><constant>FALSE_EXTENSION</constant></entry>
  191. <entry>The file '%value%' has a false extension</entry>
  192. </row>
  193. <row>
  194. <entry><constant>NOT_FOUND</constant></entry>
  195. <entry>The file '%value%' was not found</entry>
  196. </row>
  197. <row>
  198. <entry morerows="2" valign="middle">File_ExcludeMimeType</entry>
  199. <entry><constant>FALSE_TYPE</constant></entry>
  200. <entry>The file '%value%' has a false mimetype of '%type%'</entry>
  201. </row>
  202. <row>
  203. <entry><constant>NOT_DETECTED</constant></entry>
  204. <entry>The mimetype of file '%value%' could not been detected</entry>
  205. </row>
  206. <row>
  207. <entry><constant>NOT_READABLE</constant></entry>
  208. <entry>The file '%value%' can not be read</entry>
  209. </row>
  210. <row>
  211. <entry morerows="2" valign="middle">File_Exists</entry>
  212. <entry><constant>DOES_NOT_EXIST</constant></entry>
  213. <entry>The file '%value%' does not exist</entry>
  214. </row>
  215. <row>
  216. <entry morerows="1" valign="middle">File_Extension</entry>
  217. <entry><constant>FALSE_EXTENSION</constant></entry>
  218. <entry>The file '%value%' has a false extension</entry>
  219. </row>
  220. <row>
  221. <entry><constant>NOT_FOUND</constant></entry>
  222. <entry>The file '%value%' was not found</entry>
  223. </row>
  224. <row>
  225. <entry morerows="2" valign="middle">File_FilesSize</entry>
  226. <entry><constant>TOO_BIG</constant></entry>
  227. <entry>
  228. All files in sum should have a maximum size of '%max%' but '%size%' were
  229. detected
  230. </entry>
  231. </row>
  232. <row>
  233. <entry><constant>TOO_SMALL</constant></entry>
  234. <entry>
  235. All files in sum should have a minimum size of '%min%' but '%size%' were
  236. detected
  237. </entry>
  238. </row>
  239. <row>
  240. <entry><constant>NOT_READABLE</constant></entry>
  241. <entry>One or more files can not be read</entry>
  242. </row>
  243. <row>
  244. <entry morerows="2" valign="middle">File_Hash</entry>
  245. <entry><constant>DOES_NOT_MATCH</constant></entry>
  246. <entry>The file '%value%' does not match the given hashes</entry>
  247. </row>
  248. <row>
  249. <entry><constant>NOT_DETECTED</constant></entry>
  250. <entry>There was no hash detected for the given file</entry>
  251. </row>
  252. <row>
  253. <entry><constant>NOT_FOUND</constant></entry>
  254. <entry>The file '%value%' could not be found</entry>
  255. </row>
  256. <row>
  257. <entry morerows="5" valign="middle">File_ImageSize</entry>
  258. <entry><constant>WIDTH_TOO_BIG</constant></entry>
  259. <entry>
  260. Maximum allowed width for image '%value%' should be '%maxwidth%' but
  261. '%width%' detected
  262. </entry>
  263. </row>
  264. <row>
  265. <entry><constant>WIDTH_TOO_SMALL</constant></entry>
  266. <entry>
  267. Minimum expected width for image '%value%' should be '%minwidth%' but
  268. '%width%' detected
  269. </entry>
  270. </row>
  271. <row>
  272. <entry><constant>HEIGHT_TOO_BIG</constant></entry>
  273. <entry>
  274. Maximum allowed height for image '%value%' should be '%maxheight%' but
  275. '%height%' detected
  276. </entry>
  277. </row>
  278. <row>
  279. <entry><constant>HEIGHT_TOO_SMALL</constant></entry>
  280. <entry>
  281. Minimum expected height for image '%value%' should be '%minheight%' but
  282. '%height%' detected
  283. </entry>
  284. </row>
  285. <row>
  286. <entry><constant>NOT_DETECTED</constant></entry>
  287. <entry>The size of image '%value%' could not be detected</entry>
  288. </row>
  289. <row>
  290. <entry><constant>NOT_READABLE</constant></entry>
  291. <entry>The image '%value%' can not be read</entry>
  292. </row>
  293. <row>
  294. <entry morerows="2" valign="middle">File_IsCompressed</entry>
  295. <entry><constant>FALSE_TYPE</constant></entry>
  296. <entry>The file '%value%' is not compressed, '%type%' detected</entry>
  297. </row>
  298. <row>
  299. <entry><constant>NOT_DETECTED</constant></entry>
  300. <entry>The mimetype of file '%value%' could not been detected</entry>
  301. </row>
  302. <row>
  303. <entry><constant>NOT_READABLE</constant></entry>
  304. <entry>The file '%value%' can not be read</entry>
  305. </row>
  306. <row>
  307. <entry morerows="2" valign="middle">File_IsImage</entry>
  308. <entry><constant>FALSE_TYPE</constant></entry>
  309. <entry>The file '%value%' is no image, '%type%' detected</entry>
  310. </row>
  311. <row>
  312. <entry><constant>NOT_DETECTED</constant></entry>
  313. <entry>The mimetype of file '%value%' could not been detected</entry>
  314. </row>
  315. <row>
  316. <entry><constant>NOT_READABLE</constant></entry>
  317. <entry>The file '%value%' can not be read</entry>
  318. </row>
  319. <row>
  320. <entry morerows="2" valign="middle">File_Md5</entry>
  321. <entry><constant>DOES_NOT_MATCH</constant></entry>
  322. <entry>The file '%value%' does not match the given md5 hashes</entry>
  323. </row>
  324. <row>
  325. <entry><constant>NOT_DETECTED</constant></entry>
  326. <entry>There was no md5 hash detected for the given file</entry>
  327. </row>
  328. <row>
  329. <entry><constant>NOT_FOUND</constant></entry>
  330. <entry>The file '%value%' could not be found</entry>
  331. </row>
  332. <row>
  333. <entry morerows="2" valign="middle">File_MimeType</entry>
  334. <entry><constant>FALSE_TYPE</constant></entry>
  335. <entry>The file '%value%' has a false mimetype of '%type%'</entry>
  336. </row>
  337. <row>
  338. <entry><constant>NOT_DETECTED</constant></entry>
  339. <entry>The mimetype of file '%value%' could not been detected</entry>
  340. </row>
  341. <row>
  342. <entry><constant>NOT_READABLE</constant></entry>
  343. <entry>The file '%value%' can not be read</entry>
  344. </row>
  345. <row>
  346. <entry>File_NotExists</entry>
  347. <entry><constant>DOES_EXIST</constant></entry>
  348. <entry>The file '%value%' does exist</entry>
  349. </row>
  350. <row>
  351. <entry morerows="2" valign="middle">File_Sha1</entry>
  352. <entry><constant>DOES_NOT_MATCH</constant></entry>
  353. <entry>The file '%value%' does not match the given sha1 hashes</entry>
  354. </row>
  355. <row>
  356. <entry><constant>NOT_DETECTED</constant></entry>
  357. <entry>There was no sha1 hash detected for the given file</entry>
  358. </row>
  359. <row>
  360. <entry><constant>NOT_FOUND</constant></entry>
  361. <entry>The file '%value%' could not be found</entry>
  362. </row>
  363. <row>
  364. <entry morerows="2" valign="middle">File_Size</entry>
  365. <entry><constant>TOO_BIG</constant></entry>
  366. <entry>
  367. Maximum allowed size for file '%value%' is '%max%' but '%size%' detected
  368. </entry>
  369. </row>
  370. <row>
  371. <entry><constant>TOO_SMALL</constant></entry>
  372. <entry>
  373. Minimum expected size for file '%value%' is '%min%' but '%size%' detected
  374. </entry>
  375. </row>
  376. <row>
  377. <entry><constant>NOT_FOUND</constant></entry>
  378. <entry>The file '%value%' could not be found</entry>
  379. </row>
  380. <row>
  381. <entry morerows="9" valign="middle">File_Upload</entry>
  382. <entry><constant>INI_SIZE</constant></entry>
  383. <entry>The file '%value%' exceeds the defined ini size</entry>
  384. </row>
  385. <row>
  386. <entry><constant>FORM_SIZE</constant></entry>
  387. <entry>The file '%value%' exceeds the defined form size</entry>
  388. </row>
  389. <row>
  390. <entry><constant>PARTIAL</constant></entry>
  391. <entry>The file '%value%' was only partially uploaded</entry>
  392. </row>
  393. <row>
  394. <entry><constant>NO_FILE</constant></entry>
  395. <entry>The file '%value%' was not uploaded</entry>
  396. </row>
  397. <row>
  398. <entry><constant>NO_TMP_DIR</constant></entry>
  399. <entry>No temporary directory was found for the file '%value%'</entry>
  400. </row>
  401. <row>
  402. <entry><constant>CANT_WRITE</constant></entry>
  403. <entry>The file '%value%' can't be written</entry>
  404. </row>
  405. <row>
  406. <entry><constant>EXTENSION</constant></entry>
  407. <entry>
  408. The extension returned an error while uploading the file '%value%'
  409. </entry>
  410. </row>
  411. <row>
  412. <entry><constant>ATTACK</constant></entry>
  413. <entry>The file '%value%' was illegal uploaded, possible attack</entry>
  414. </row>
  415. <row>
  416. <entry><constant>FILE_NOT_FOUND</constant></entry>
  417. <entry>The file '%value%' was not found</entry>
  418. </row>
  419. <row>
  420. <entry><constant>UNKNOWN</constant></entry>
  421. <entry>Unknown error while uploading the file '%value%'</entry>
  422. </row>
  423. <row>
  424. <entry morerows="2" valign="middle">File_WordCount</entry>
  425. <entry><constant>TOO_MUCH</constant></entry>
  426. <entry>
  427. Too much words, maximum '%max%' are allowed but '%count%' were counted
  428. </entry>
  429. </row>
  430. <row>
  431. <entry><constant>TOO_LESS</constant></entry>
  432. <entry>
  433. Too less words, minimum '%min%' are expected but '%count%' were counted
  434. </entry>
  435. </row>
  436. <row>
  437. <entry><constant>NOT_FOUND</constant></entry>
  438. <entry>The file '%value%' could not be found</entry>
  439. </row>
  440. <row>
  441. <entry>Float</entry>
  442. <entry><constant>NOT_FLOAT</constant></entry>
  443. <entry>'%value%' does not appear to be a float</entry>
  444. </row>
  445. <row>
  446. <entry>GreaterThan</entry>
  447. <entry><constant>NOT_GREATER</constant></entry>
  448. <entry>'%value%' is not greater than '%min%'</entry>
  449. </row>
  450. <row>
  451. <entry>Hex</entry>
  452. <entry><constant>NOT_HEX</constant></entry>
  453. <entry>'%value%' has not only hexadecimal digit characters</entry>
  454. </row>
  455. <row>
  456. <entry morerows="7" valign="middle">Hostname</entry>
  457. <entry><constant>IP_ADDRESS_NOT_ALLOWED</constant></entry>
  458. <entry>
  459. '%value%' appears to be an IP address, but IP addresses are not allowed
  460. </entry>
  461. </row>
  462. <row>
  463. <entry><constant>UNKNOWN_TLD</constant></entry>
  464. <entry>
  465. '%value%' appears to be a <acronym>DNS</acronym> hostname but cannot match
  466. <acronym>TLD</acronym> against known list
  467. </entry>
  468. </row>
  469. <row>
  470. <entry><constant>INVALID_DASH</constant></entry>
  471. <entry>
  472. '%value%' appears to be a <acronym>DNS</acronym> hostname but contains a
  473. dash (-) in an invalid position
  474. </entry>
  475. </row>
  476. <row>
  477. <entry><constant>INVALID_HOSTNAME_SCHEMA</constant></entry>
  478. <entry>
  479. '%value%' appears to be a <acronym>DNS</acronym> hostname but cannot match
  480. against hostname schema for <acronym>TLD</acronym> '%tld%'
  481. </entry>
  482. </row>
  483. <row>
  484. <entry><constant>UNDECIPHERABLE_TLD</constant></entry>
  485. <entry>
  486. '%value%' appears to be a <acronym>DNS</acronym> hostname but cannot extract
  487. <acronym>TLD</acronym> part
  488. </entry>
  489. </row>
  490. <row>
  491. <entry><constant>INVALID_HOSTNAME</constant></entry>
  492. <entry>
  493. '%value%' does not match the expected structure for a <acronym>DNS</acronym>
  494. hostname
  495. </entry>
  496. </row>
  497. <row>
  498. <entry><constant>INVALID_LOCAL_NAME</constant></entry>
  499. <entry>'%value%' does not appear to be a valid local network name</entry>
  500. </row>
  501. <row>
  502. <entry><constant>LOCAL_NAME_NOT_ALLOWED</constant></entry>
  503. <entry>
  504. '%value%' appears to be a local network name but local network names are not
  505. allowed
  506. </entry>
  507. </row>
  508. <row>
  509. <entry morerows="2" valign="middle">Iban</entry>
  510. <entry><constant>NOTSUPPORTED</constant></entry>
  511. <entry>'%value%' does not have <acronym>IBAN</acronym></entry>
  512. </row>
  513. <row>
  514. <entry><constant>FALSEFORMAT</constant></entry>
  515. <entry>'%value%' has a false format</entry>
  516. </row>
  517. <row>
  518. <entry><constant>CHECKFAILED</constant></entry>
  519. <entry>'%value%' has failed the <acronym>IBAN</acronym> check</entry>
  520. </row>
  521. <row>
  522. <entry morerows="1" valign="middle">Identical</entry>
  523. <entry><constant>NOT_SAME</constant></entry>
  524. <entry>The token '%token%' does not match the given token '%value%'</entry>
  525. </row>
  526. <row>
  527. <entry><constant>MISSING_TOKEN</constant></entry>
  528. <entry>No token was provided to match against</entry>
  529. </row>
  530. <row>
  531. <entry>InArray</entry>
  532. <entry><constant>NOT_IN_ARRAY</constant></entry>
  533. <entry>'%value%' was not found in the haystack</entry>
  534. </row>
  535. <row>
  536. <entry>Int</entry>
  537. <entry><constant>NOT_INT</constant></entry>
  538. <entry>'%value%' does not appear to be an integer</entry>
  539. </row>
  540. <row>
  541. <entry>Ip</entry>
  542. <entry><constant>NOT_IP_ADDRESS</constant></entry>
  543. <entry>'%value%' does not appear to be a valid IP address</entry>
  544. </row>
  545. <row>
  546. <entry>LessThan</entry>
  547. <entry><constant>NOT_LESS</constant></entry>
  548. <entry>'%value%' is not less than '%max%'</entry>
  549. </row>
  550. <row>
  551. <entry>NotEmpty</entry>
  552. <entry><constant>IS_EMPTY</constant></entry>
  553. <entry>Value is required and can't be empty</entry>
  554. </row>
  555. <row>
  556. <entry>Regex</entry>
  557. <entry><constant>NOT_MATCH</constant></entry>
  558. <entry>'%value%' does not match against pattern '%pattern%'</entry>
  559. </row>
  560. <row>
  561. <entry morerows="1" valign="middle">StringLength</entry>
  562. <entry><constant>TOO_SHORT</constant></entry>
  563. <entry>'%value%' is less than %min% characters long</entry>
  564. </row>
  565. <row>
  566. <entry><constant>TOO_LONG</constant></entry>
  567. <entry>'%value%' is greater than %max% characters long</entry>
  568. </row>
  569. </tbody>
  570. </tgroup>
  571. </table>
  572. <para>
  573. Zusätzlich kann man alle Meldungstemplates einer Prüfung mit der Methode
  574. <methodname>getMessageTemplates()</methodname> erhalten. Sie gibt ein Array mit den
  575. Meldungen zurück die eine Prüfung im Fall einer fehlgeschlagenen Prüfung zurückgeben könnte.
  576. </para>
  577. <programlisting language="php"><![CDATA[
  578. $validator = new Zend_Validate_Alnum();
  579. $messages = $validator->getMessageTemplates();
  580. ]]></programlisting>
  581. <sect2 id="zend.validate.messages.limitation">
  582. <title>Begrenzen der Größe einer Prüfungsmeldung</title>
  583. <para>
  584. Manchmal ist es notwendig die maximale Größe die eine Prüfungsmeldung haben kann zu
  585. begrenzen. Zum Beispiel wenn die View nur eine maximale Größe von 100 Zeichen für die
  586. Darstellung auf einer Zeile erlaubt. Um die Verwendung zu vereinfachen, ist
  587. <classname>Zend_Validate</classname> dazu in der Lage die maximal zurückgegebene
  588. Größe einer Prüfnachricht zu begrenzen.
  589. </para>
  590. <para>
  591. Um die aktuell gesetzte Größe zu erhalten ist
  592. <methodname>Zend_Validate::getMessageLength()</methodname> zu verwenden. Wenn diese
  593. -1 ist, dann wird die zurückgegebene Nachricht nicht begrenzt. Das ist das
  594. Standardverhalten.
  595. </para>
  596. <para>
  597. Um die Größe der zurückgegebenen Nachrichten zu begrenzen ist
  598. <methodname>Zend_Validate::setMessageLength()</methodname> zu verwenden. Man kann diese
  599. auf jede benötigte Integer Größe setzen. Wenn die zurückzugebende Nachricht die
  600. gesetzte Größe überschreitet, dann wird die Nachricht abgeschnitten und der String
  601. '<emphasis>...</emphasis>' wird statt dem Rest der Nachricht hinzugefügt.
  602. </para>
  603. <programlisting language="php"><![CDATA[
  604. Zend_Validate::setMessageLength(100);
  605. ]]></programlisting>
  606. <note>
  607. <para>
  608. Es ist zu beachten das die gesetzte Länge der Nachrichten für alle Prüfungen
  609. verwendet wird, sogar für selbstdefinierte, solange Sie
  610. <classname>Zend_Validate_Abstract</classname> erweitern.
  611. </para>
  612. </note>
  613. </sect2>
  614. </sect1>
  615. <!--
  616. vim:se ts=4 sw=4 et:
  617. -->