The work to Zend_Form is ongoing - the PR release was only an appetiser :)

To get the benefit of Matthew's more recent changes you'll need to download a nightly or pull down the trunk from subversion.

Cheers


Hello!

I have the same problem.
I used this code but... it doesn't work!

Could someone tell me why?
I have 1.5.0 PR Version of Framework.

Thanks in advance


Matthew Weier O'Phinney-3 wrote:

-- Dividy <[EMAIL PROTECTED]> wrote
(on Saturday, 02 February 2008, 03:19 PM -0800):

   <?php
   // translations.php
   return array(
       'stringEmpty' => 'Please fill in this value',
       ...
   );

Then, create your translate object:

   $translations = include 'path/to/translations.php';
   $translate = new Zend_Translate('array', $translations, 'en');

And pass the translation adapter to your form:

   $form->setTranslator($translate->getAdapter());





--
View this message in context: 
http://www.nabble.com/Zend_Form-and-validation-language-tp15248574s16154p15533495.html
Sent from the Zend Framework mailing list archive at Nabble.com.


--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com

Reply via email to