|
Zend_Validate, Zend_Form gettext translation file |
|
Thursday, 19 June 2008 08:39 |
|
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"
|
|
|
Experimental form action helper |
|
Friday, 06 June 2008 23:59 |
|
We've just created an experiment form action helper which loads form classes inside a module or application and we need people to try it out and give feedback. <?php
class FooController extends Zend_Controller_Action
{
public indexAction()
{
$formHelper = $this->getHelper('Form');
// Loads forms/Bar.php
$form = $formHelper->create('Bar');
}
}
Docs are here: Form action helper docs |
|
Experimental Zend_Form config schema |
|
Friday, 30 May 2008 09:42 |
|
One of Zym's goal is to simplify development of PHP applications with ZF, so we've created an experimental Zend_Form schema for Zend_Config_Xml.
It is currently located at http://www.zym-project.com/schema/Form/1.5 <?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.zym-project.com/schema/Form/1.5">
<elements>
<element>
<type>Text</type>
<name>Foo</name>
</element>
</elements>
</form>What does having a schema mean? Having a schema allows those with tools that allow auto completion such as OxygenXml will improve the productivity and creation times of forms. Give it a try and post some feedback on our mailing list http://groups.google.com/group/zym-framework |
|
New site design and API Docs |
|
Saturday, 24 May 2008 00:00 |
As you may have noticed, the site has been updated to a new look to reflect the projects ongoing progress. The previous API docs generated with phpDocumentor using the HTML:frames:earthli template was not too appealing to the eyes, so we decided to scrap up an extjs style template. We hope you like the new look! |
|
Zym_Paginate is going Zend! |
|
Friday, 16 May 2008 07:46 |
One of Zym's mission statements is to contribute back to Zend Framework wherever we can. For this reason I've created a proposal for Zend_Paginate a while back, which is of course heavily based on Zym_Paginate. There was also a proposal for Zend_Paginator, which was written by Matthew Ratzloff. We decided to fuse these proposals together to create the ultimate Zend_Paginate.
All the hard work on Paginate is paying off. I'm happy to inform you that, although it's currently still under review from the Zend team, Paginate will most likely be accepted for the ZF 1.6 release. Whether it will be released in the main distribution or in the extras is not clear at the moment. In any case, it looks like Zym is starting to do one of the things it was set out to do. |
|
|
<< Start < Prev 1 2 3 4 Next > End >>
|
|
Page 2 of 4 |