|
Had some time on my hands so I figured I'd script up a gettext translation file from all the Zend Validate message templates. The keys are all there for the current ZF 1.5.2 validators. Because these validators are what powers Zend_Form, it can be used to translate form validation messages . Hopefully with all the validation keys and default messages here, it would make it easier for others to create their own translation sets. Below is the english gettext po file (could always be a pot file if you removed the translations ): "Project-Id-Version: Zend Framework\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: Geoffrey Tran <spotsec.com>\n"
"Language-Team: Zym <mailto:zym-framework at googlegroups.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: English\n"
msgid "notAlnum"
msgstr "\"%value%\" contains non-alphabetic or non-digit characters"
msgid "stringEmpty"
msgstr "\"%value%\" is an empty string"
msgid "notAlpha"
msgstr "\"%value%\" has non-alphabetic characters"
msgid "notBetween"
msgstr "\"%value%\" is not between \"%min%\" and \"%max%\", inclusively"
msgid "notBetweenStrict"
msgstr "\"%value%\" is not strictly between \"%min%\" and \"%max%\""
msgid "ccnumLength"
msgstr "\"%value%\" must contain between 13 and 19 digits"
msgid "ccnumChecksum"
msgstr "Luhn algorithm (mod-10 checksum) failed on \"%value%\""
msgid "dateNotYYYY-MM-DD"
msgstr "\"%value%\" is not in the format YYYY-MM-DD"
msgid "dateInvalid"
msgstr "\"%value%\" does not appear to be a valid date"
msgid "dateFalseFormat"
msgstr "\"%value%\" does not fit given date format"
msgid "notDigits"
msgstr "\"%value%\" contains non-digit characters"
msgid "emailAddressInvalid"
msgstr "\"%value%\" is not a valid email address in the basic format local-part@hostname"
msgid "emailAddressInvalidHostname"
msgstr "\"%hostname%\" is not a valid hostname for email address \"%value%\""
msgid "emailAddressInvalidMxRecord"
msgstr "\"%hostname%\" does not appear to have a valid MX record for the email address \"%value%\""
msgid "emailAddressDotAtom"
msgstr "\"%localPart%\" not matched against dot-atom format"
msgid "emailAddressQuotedString"
msgstr "\"%localPart%\" not matched against quoted-string format"
msgid "emailAddressInvalidLocalPart"
msgstr "\"%localPart%\" is not a valid local part for email address \"%value%\""
msgid "notFloat"
msgstr "\"%value%\" does not appear to be a float"
msgid "notGreaterThan"
msgstr "\"%value%\" is not greater than \"%min%\""
msgid "notHex"
msgstr "\"%value%\" has non-hexadecimal characters"
msgid "hostnameIpAddressNotAllowed"
msgstr "\"%value%\" appears to be an IP address, but IP addresses are not allowed"
msgid "hostnameUnknownTld"
msgstr "\"%value%\" appears to be a DNS hostname but cannot match TLD against known list"
msgid "hostnameDashCharacter"
msgstr "\"%value%\" appears to be a DNS hostname but contains a dash (-) in an invalid position"
msgid "hostnameInvalidHostnameSchema"
msgstr "\"%value%\" appears to be a DNS hostname but cannot match against hostname schema for TLD \"%tld%\""
msgid "hostnameUndecipherableTld"
msgstr "\"%value%\" appears to be a DNS hostname but cannot extract TLD part"
msgid "hostnameInvalidHostname"
msgstr "\"%value%\" does not match the expected structure for a DNS hostname"
msgid "hostnameInvalidLocalName"
msgstr "\"%value%\" does not appear to be a valid local network name"
msgid "hostnameLocalNameNotAllowed"
msgstr "\"%value%\" appears to be a local network name but local network names are not allowed"
msgid "notSame"
msgstr "Values are no the same"
msgid "missingToken"
msgstr "No token was provided to match against"
msgid "notInArray"
msgstr "\"%value%\" was not found in the haystack"
msgid "notInt"
msgstr "\"%value%\" does not appear to be an integer"
msgid "notIpAddress"
msgstr "\"%value%\" does not appear to be a valid IP address"
msgid "notLessThan"
msgstr "\"%value%\" is not less than \"%max%\""
msgid "isEmpty"
msgstr "Value is empty, but a non-empty value is required"
msgid "regexNotMatched"
msgstr "\"%value%\" does not match against pattern \"%pattern%\""
msgid "stringLengthTooShort"
msgstr "\"%value%\" is less than %min% characters long"
msgid "stringLengthTooLong"
msgstr "\"%value%\" is greater than %max% characters long"
 |
|
|