Matthew Weier O'Phinney-3 wrote:
>
> -- Dividy <[EMAIL PROTECTED]> wrote
> (on Saturday, 02 February 2008, 03:19 PM -0800):
> 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());
>
This is something that stumped my yesterday: Why do I have to extract the
Adapter from the Translator to pass it to a method called setTranslator (not
setTranslatorAdapter)?
Wouldn't it be more obvious to just pass $translate?
--
View this message in context:
http://www.nabble.com/Zend_Form-and-validation-language-tp15248574s16154p15312706.html
Sent from the Zend Framework mailing list archive at Nabble.com.
- [fw-general] Zend_Form and validation langu... Dividy
- Re: [fw-general] Zend_Form and validat... Matthew Weier O'Phinney
- Re: [fw-general] Zend_Form and val... Ćukasz Kazimierz Bandzarewicz
- Re: [fw-general] Zend_Form and... Matthew Weier O'Phinney
- Re: [fw-general] Zend_Form... ALkyD
- Re: [fw-general] Zend... Matthew Weier O'Phinney
- Re: [fw-general] ... ALkyD
- Re: [fw-gener... Matthew Weier O'Phinney
- Re: [fw-general] Zend_Form and val... Jim Scherer
- Re: [fw-general] Zend_Form and... Matthew Weier O'Phinney
- Re: [fw-general] Zend_Form and val... buennagelj
- Re: [fw-general] Zend_Form and... Thomas Weidner
- Re: [fw-general] Zend_Form and... Matthew Weier O'Phinney
- Re: [fw-general] Zend_Form... Jochen Buennagel
- Re: [fw-general] Zend_Form and val... sadoch
- Re: [fw-general] Zend_Form and... Simon Mundy
- Re: [fw-general] Zend_Form and validat... Dividy
- Re: [fw-general] Zend_Form and val... Matthew Weier O'Phinney
- Re: [fw-general] Zend_Form and... Dividy
- Re: [fw-general] Zend_Form... Matthew Weier O'Phinney
- Re: [fw-general] Zend... Dividy
