Zend_Validate.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. */
  21. /**
  22. * HR-Revision: 2
  23. */
  24. return array(
  25. // Zend_Validate_Alnum
  26. "Invalid type given, value should be float, string, or integer" => "Neispravan tip, vrijednost bi trebala biti niz slova, brojki ili realni broj",
  27. "'%value%' contains characters which are non alphabetic and no digits" => "'%value%' sadrži znakove koji nisu ni slova ni brojke",
  28. "'%value%' is an empty string" => "'%value%' je prazan niz",
  29. // Zend_Validate_Alpha
  30. "Invalid type given, value should be a string" => "Neispravan tip, vrijednost mora biti niz slova",
  31. "'%value%' contains non alphabetic characters" => "'%value%' sadrži znakove koji nisu slova",
  32. "'%value%' is an empty string" => "'%value%' je prazan niz",
  33. // Zend_Validate_Barcode
  34. "'%value%' failed checksum validation" => "'%value%' nije prošao provjeru",
  35. "'%value%' contains invalid characters" => "'%value%' sadrži neispravne znakove",
  36. "'%value%' should have a length of %length% characters" => "'%value%' bi trebao imati dužinu od %length% znakova",
  37. "Invalid type given, value should be string" => "Neispravan tip, vrijedno mora biti niz znakova",
  38. // Zend_Validate_Between
  39. "'%value%' is not between '%min%' and '%max%', inclusively" => "'%value%' nije između '%min%' i '%max%', uključivo",
  40. "'%value%' is not strictly between '%min%' and '%max%'" => "'%value%' nije strogo između '%min%' i '%max%'",
  41. // Zend_Validate_Callback
  42. "'%value%' is not valid" => "'%value%' nije ispravan",
  43. "Failure within the callback, exception returned" => "Pogreška sa povratnim pozivom, iznimka vraćena",
  44. // Zend_Validate_Ccnum
  45. "'%value%' must contain between 13 and 19 digits" => "'%value%' mora sadržavati između 13 i 19 znamenki",
  46. "Luhn algorithm (mod-10 checksum) failed on '%value%'" => "Luhn algoritam (mod-10 provjera) nije prošla na '%value%'",
  47. // Zend_Validate_CreditCard
  48. "Luhn algorithm (mod-10 checksum) failed on '%value%'" => "Luhn algoritam (mod-10 provjera) nije prošla na '%value%'",
  49. "'%value%' must contain only digits" => "'%value%' mora sadržavati samo znamenke",
  50. "Invalid type given, value should be a string" => "Neispravan tip, vrijednost mora biti niz znakova",
  51. "'%value%' contains an invalid amount of digits" => "'%value%' sadrži neispravan broj znamenki",
  52. "'%value%' is not from an allowed institute" => "'%value%' nije iz dozvoljene institucije",
  53. "Validation of '%value%' has been failed by the service" => "Servis nije odobrio provjeru '%value%'",
  54. "The service returned a failure while validating '%value%'" => "Servis je vratio pogrešku provjeravajući '%value%'",
  55. // Zend_Validate_Date
  56. "Invalid type given, value should be string, integer, array or Zend_Date" => "Neispravan tip, vrijednost mora biti niz znakova, broj, polje ili Zend_Date",
  57. "'%value%' does not appear to be a valid date" => "'%value%' ne izgleda kao ispravan datum",
  58. "'%value%' does not fit the date format '%format%'" => "'%value%' ne odgovara formatu datuma '%format%'",
  59. // Zend_Validate_Db_Abstract
  60. "No record matching '%value%' was found" => "Nije pronađen zapis koji se podudara sa %value%",
  61. "A record matching '%value%' was found" => "Zapis koji se podudara sa %value% je pronađen",
  62. // Zend_Validate_Digits
  63. "Invalid type given, value should be string, integer or float" => "Neispravan tip, vrijednost bi trebala biti niz slova, brojki ili realni broj",
  64. "'%value%' contains characters which are not digits; but only digits are allowed" => "'%value%' sadrži znakove koji nisu znamenke; samo znamenke su dozvoljene",
  65. "'%value%' is an empty string" => "'%value%' je prazan niz",
  66. // Zend_Validate_EmailAddress
  67. "Invalid type given, value should be a string" => "Neispravan tip, vrijednost bi trebala biti niz",
  68. "'%value%' is not a valid email address in the basic format local-part@hostname" => "'%value%' nije ispravna email adresa u osnovnom formatu lokalni-dio@ime-poslužitelja",
  69. "'%hostname%' is not a valid hostname for email address '%value%'" => "'%hostname%' nije ispravno ime poslužitelja za email adresu '%value%'",
  70. "'%hostname%' does not appear to have a valid MX record for the email address '%value%'" => "'%hostname%' nema ispravan MX zapis za email adresu '%value%'",
  71. "'%hostname%' is not in a routable network segment. The email address '%value%' should not be resolved from public network." => "'%hostname%' nije u rutabilnom mrežnom segmentu. Email adresa '%value%' ne bi smjela biti razlučiva iz javne mreže.",
  72. "'%localPart%' can not be matched against dot-atom format" => "'%localPart%' se ne podudara s dot-atom formatom",
  73. "'%localPart%' can not be matched against quoted-string format" => "'%localPart%' se ne podudara s 'quoted-string' formatom",
  74. "'%localPart%' is not a valid local part for email address '%value%'" => "'%localPart%' nije ispravan lokalni dio za email adresu '%value%'",
  75. "'%value%' exceeds the allowed length" => "'%value%' je duža od dozvoljene dužine",
  76. // Zend_Validate_File_Count
  77. "Too many files, maximum '%max%' are allowed but '%count%' are given" => "Previše datoteka, maksimalno '%max%' je dozvoljeno, a '%count%' je zadano",
  78. "Too few files, minimum '%min%' are expected but '%count%' are given" => "Premalo datoteka, minimalno '%min%' se očekuje a '%count%' je zadano",
  79. // Zend_Validate_File_Crc32
  80. "File '%value%' does not match the given crc32 hashes" => "Datoteka '%value%' se ne podudara sa zadanim crc32 hash-em",
  81. "A crc32 hash could not be evaluated for the given file" => "crc32 hash se ne može izračunati za zadanu datoteku",
  82. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  83. // Zend_Validate_File_ExcludeExtension
  84. "File '%value%' has a false extension" => "Datoteka '%value%' ima neispravnu ekstenziju",
  85. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  86. // Zend_Validate_File_ExcludeMimeType
  87. "File '%value%' has a false mimetype of '%type%'" => "Datoteka '%value%' ima neispravan 'mime' tip '%type%'",
  88. "The mimetype of file '%value%' could not be detected" => "'Mime' tip datoteke '%value%' nije moguće detektirati",
  89. "File '%value%' can not be read" => "Datoteku '%value%' nije moguće pročitati",
  90. // Zend_Validate_File_Exists
  91. "File '%value%' does not exist" => "Datoteka '%value%' ne postoji",
  92. // Zend_Validate_File_Extension
  93. "File '%value%' has a false extension" => "Datoteka '%value%' ima neispravnu ekstenziju",
  94. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  95. // Zend_Validate_File_FilesSize
  96. "All files in sum should have a maximum size of '%max%' but '%size%' were detected" => "Sve datoteke zajedno mogu imati maksimalnu veličinu od '%max%', a imaju '%size%'",
  97. "All files in sum should have a minimum size of '%min%' but '%size%' were detected" => "Sve datoteke zajedno moraju imati minimalnu veličinu od '%min%', a imaju '%size%'",
  98. "One or more files can not be read" => "Jednu ili više datoteka nije moguće pročitati",
  99. // Zend_Validate_File_Hash
  100. "File '%value%' does not match the given hashes" => "Datoteka '%value%' ne odgovara danom 'hashu'",
  101. "A hash could not be evaluated for the given file" => "'Hash' nije moguće izračunati za zadanu datoteku",
  102. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  103. // Zend_Validate_File_ImageSize
  104. "Maximum allowed width for image '%value%' should be '%maxwidth%' but '%width%' detected" => "Maksimalna dozvoljena širina slike '%value%' je '%maxwidth%', slika je široka '%width%'",
  105. "Minimum expected width for image '%value%' should be '%minwidth%' but '%width%' detected" => "Minimalna očekivana širina slike '%value%' je '%minwidth%' slika je široka '%width%'",
  106. "Maximum allowed height for image '%value%' should be '%maxheight%' but '%height%' detected" => "Maksimalna dozvoljena visina slike '%value%' je '%maxheight%', slika je visoka '%height%'",
  107. "Minimum expected height for image '%value%' should be '%minheight%' but '%height%' detected" => "Minimalna očekivana visina slike '%value%' je '%minheight%', slika je visoka '%height%'",
  108. "The size of image '%value%' could not be detected" => "Dimenzije slike '%value%' nije moguće otkriti",
  109. "File '%value%' can not be read" => "Datoteku '%value%' nije moguće pročitati",
  110. // Zend_Validate_File_IsCompressed
  111. "File '%value%' is not compressed, '%type%' detected" => "Datoteka '%value%' nije kompresirana, datoteka je tipa '%type%'",
  112. "The mimetype of file '%value%' could not be detected" => "'Mime' tip datoteke '%value%' nije moguće detektirati",
  113. "File '%value%' can not be read" => "Datoteku '%value%' nije moguće pročitati",
  114. // Zend_Validate_File_IsImage
  115. "File '%value%' is no image, '%type%' detected" => "Datoteka '%value%' nije slika, datoteka je tipa '%type%'",
  116. "The mimetype of file '%value%' could not be detected" => "'Mime' tip datoteke '%value%' nijem moguće detektirati",
  117. "File '%value%' can not be read" => "Datoteku '%value%' nije moguće pročitati",
  118. // Zend_Validate_File_Md5
  119. "File '%value%' does not match the given md5 hashes" => "Datoteka '%value%' ne odgovara zadanom md5 hash-u",
  120. "A md5 hash could not be evaluated for the given file" => "Md5 hash nije moguće izračunati za zadanu datoteku",
  121. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  122. // Zend_Validate_File_MimeType
  123. "File '%value%' has a false mimetype of '%type%'" => "Datoteka '%value%' ima neispravan 'mime' tip '%type%'",
  124. "The mimetype of file '%value%' could not be detected" => "'Mime' tip datoteke '%value%' nije moguće detektirati",
  125. "File '%value%' can not be read" => "Datoteku '%value%' nije moguće pročitati",
  126. // Zend_Validate_File_NotExists
  127. "File '%value%' exists" => "Datiteja '%value%' postoji",
  128. // Zend_Validate_File_Sha1
  129. "File '%value%' does not match the given sha1 hashes" => "Datoteka '%value%' ne odgovara zadanom sha1 hash-u",
  130. "A sha1 hash could not be evaluated for the given file" => "Sha1 hash se ne može izračunati za zadanu datoteku",
  131. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  132. // Zend_Validate_File_Size
  133. "Maximum allowed size for file '%value%' is '%max%' but '%size%' detected" => "Maksimalna dozvoljena veličina datoteka '%value%' je '%max%', datoteka je velika '%size%'",
  134. "Minimum expected size for file '%value%' is '%min%' but '%size%' detected" => "Minimalna dozvoljena veličina datoteke '%value%' je '%min%', datoteka je velika '%size%'",
  135. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  136. // Zend_Validate_File_Upload
  137. "File '%value%' exceeds the defined ini size" => "Datoteka '%value%' prelazi veličinu definiranu u ini datoteci",
  138. "File '%value%' exceeds the defined form size" => "Datoteka '%value%' prelazi veličinu definiranu u formi",
  139. "File '%value%' was only partially uploaded" => "Datoteka '%value%' je samo djelomično poslana",
  140. "File '%value%' was not uploaded" => "Datoteka '%value%' nije poslana",
  141. "No temporary directory was found for file '%value%'" => "Nije pronađen privremeni direktorij za datoteku '%value%'",
  142. "File '%value%' can't be written" => "Datoteku '%value%' nije moguće zapisati",
  143. "A PHP extension returned an error while uploading the file '%value%'" => "PHP ekstenzija je vratila pogrešku prilikom slanja datoteke '%value%'",
  144. "File '%value%' was illegally uploaded. This could be a possible attack" => "Datoteka '%value%' je nelegalno poslana. Ovo bi mogao biti napad",
  145. "File '%value%' was not found" => "Datoteka '%value%' nije pronađena",
  146. "Unknown error while uploading file '%value%'" => "Nepoznata pogreška prilikom slanja datoteke '%value%'",
  147. // Zend_Validate_File_WordCount
  148. "Too much words, maximum '%max%' are allowed but '%count%' were counted" => "Previše riječi, maksimalno '%max%' riječi je dozvoljeno, a ima ih '%count%'",
  149. "Too less words, minimum '%min%' are expected but '%count%' were counted" => "Premalo riječi, očekuje se minimalno '%min%' riječi, a ima ih '%count%' ",
  150. "File '%value%' could not be found" => "Datoteku '%value%' nije moguće pronaći",
  151. // Zend_Validate_Float
  152. "Invalid type given, value should be float, string, or integer" => "Neispravan tip, vrijednost bi trebala biti niz slova, brojki ili realni broj",
  153. "'%value%' does not appear to be a float" => "'%value%' nije realni broj",
  154. // Zend_Validate_GreaterThan
  155. "'%value%' is not greater than '%min%'" => "'%value%' nije veće od '%min%'",
  156. // Zend_Validate_Hex
  157. "Invalid type given, value should be a string" => "Neispravan tip, vrijednost bi trebala biti niz",
  158. "'%value%' has not only hexadecimal digit characters" => "'%value%' nema samo heksadekadske znamenke",
  159. // Zend_Validate_Hostname
  160. "Invalid type given, value should be a string" => "Neispravan tup, vrijednost bi trebala biti niz",
  161. "'%value%' appears to be an IP address, but IP addresses are not allowed" => "'%value%' izgleda kao IP adresa, IP adrese nisu dozvoljene",
  162. "'%value%' appears to be a DNS hostname but cannot match TLD against known list" => "'%value%' izgleda kao DNS ime poslužitelja, ali ne mogu pronaći vršnu domenu u listi poznatih",
  163. "'%value%' appears to be a DNS hostname but contains a dash in an invalid position" => "'%value%' izgleda kao DNS ime poslužitelja, ali ima crtu ne neispravnoj poziciji",
  164. "'%value%' appears to be a DNS hostname but cannot match against hostname schema for TLD '%tld%'" => "'%value%' izgleda kao DNS ime poslužitelja ali se ne podudara sa shemom imena poslužitelja za vršnu domenu '%tld%'",
  165. "'%value%' appears to be a DNS hostname but cannot extract TLD part" => "'%value%' izgleda kao DNS ime poslužitelja, ali ne mogu izvući dio koji označava vršnu domenu",
  166. "'%value%' does not match the expected structure for a DNS hostname" => "'%value%' se ne podudara sa očekivanom strukturom DNS imena poslužitelja",
  167. "'%value%' does not appear to be a valid local network name" => "'%value%' ne izgleda kao ispravno ime lokalne mreže",
  168. "'%value%' appears to be a local network name but local network names are not allowed" => "'%value%' izgleda kao ime lokalne mreže, ali imena lokalnih mreža nisu dozvoljena",
  169. "'%value%' appears to be a DNS hostname but the given punycode notation cannot be decoded" => "'%value%' izgleda kao DNS ime poslužitelja ali zadanu 'punycode' notaciju nije moguće dekodirati",
  170. // Zend_Validate_Iban
  171. "Unknown country within the IBAN '%value%'" => "Nepoznata zemlja unutar IBAN-a '%value%'",
  172. "'%value%' has a false IBAN format" => "'%value%' ima neispravan IBAN format",
  173. "'%value%' has failed the IBAN check" => "'%value%' nije prošlo IBAN provjeru",
  174. // Zend_Validate_Identical
  175. "The two given tokens do not match" => "Zadane vrijednosti se ne podudaraju",
  176. "No token was provided to match against" => "Nije zadano vrijednost s kojom se treba usporediti",
  177. // Zend_Validate_InArray
  178. "'%value%' was not found in the haystack" => "Vrijednost '%value%' nije pronađena u polju",
  179. // Zend_Validate_Int
  180. "Invalid type given, value should be string or integer" => "Neispravan tip, vrijednost bi trebala biti niz ili cijeli broj",
  181. "'%value%' does not appear to be an integer" => "'%value%' ne izgleda kao cijeli broj",
  182. // Zend_Validate_Ip
  183. "Invalid type given, value should be a string" => "Neispravan tip, vrijednost mora biti niz",
  184. "'%value%' does not appear to be a valid IP address" => "'%value%' ne izgleda kao ispravna IP adresa",
  185. // Zend_Validate_Isbn
  186. "Invalid type given, value should be string or integer" => "Neispravan tip, vrijednost mora biti niz ili cijeli broj",
  187. "'%value%' is not a valid ISBN number" => "'%value%' nije ispravan ISBN broj",
  188. // Zend_Validate_LessThan
  189. "'%value%' is not less than '%max%'" => "'%value%' nije manje od '%max%'",
  190. // Zend_Validate_NotEmpty
  191. "Invalid type given, value should be float, string, array, boolean or integer" => "Neispravan tip, vrijednost mora biti realni broj, niz, polje, cijeli broj ili 'boolean'",
  192. "Value is required and can't be empty" => "Vrijednost ne smije biti prazna",
  193. // Zend_Validate_PostCode
  194. "Invalid type given. The value should be a string or a integer" => "Neispravan tip. Vrijednost mora biti niz ili cijeli broj",
  195. "'%value%' does not appear to be a postal code" => "'%value%' ne izgleda kao poštanski kod",
  196. // Zend_Validate_Regex
  197. "Invalid type given, value should be string, integer or float" => "Neispravan tip, vrijednost mora biti niz, cijeli ili realni broj",
  198. "'%value%' does not match against pattern '%pattern%'" => "'%value%' se ne podudara sa uzorkom '%pattern%'",
  199. "There was an internal error while using the pattern '%pattern%'" => "Došlo je do interne pogreške prilikom korištenja uzorka '%pattern%'",
  200. // Zend_Validate_Sitemap_Changefreq
  201. "'%value%' is not a valid sitemap changefreq" => "'%value%' nije ispravna vrijednost za sitemap 'changefreq'",
  202. "Invalid type given, the value should be a string" => "Neispravan tip, vrijednost mora biti niz",
  203. // Zend_Validate_Sitemap_Lastmod
  204. "'%value%' is not a valid sitemap lastmod" => "'%value%' nije ispravna vrijednost za sitemap 'lastmod'",
  205. "Invalid type given, the value should be a string" => "Neispravan tip, vrijednost mora biti niz",
  206. // Zend_Validate_Sitemap_Loc
  207. "'%value%' is not a valid sitemap location" => "'%value%' nije ispravna lokacija za 'sitemap'",
  208. "Invalid type given, the value should be a string" => "Neispravan tip, vrijednost mora biti niz",
  209. // Zend_Validate_Sitemap_Priority
  210. "'%value%' is not a valid sitemap priority" => "'%value%' nije ispravna vrijednost za sitemap 'priority'",
  211. "Invalid type given, the value should be a integer, a float or a numeric string" => "Neispravan tip, vrijednost mora biti cijeli broj, realni broj ili niz znamenki",
  212. // Zend_Validate_StringLength
  213. "Invalid type given, value should be a string" => "Neispravan tip, vrijednost mora biti niz",
  214. "'%value%' is less than %min% characters long" => "'%value%' ima manje od %min% znaka",
  215. "'%value%' is more than %max% characters long" => "'%value%' ima više od %max% znakova",
  216. );