2008年11月30日星期日

Re: [fw-mvc] zend_dojo DateTextBox (invalid message translation)

-- dnul <nxdiego@gmail.com> wrote
(on Saturday, 29 November 2008, 06:46 PM -0800):
>
> Hi , im using a Zend_Dojo_Form_Element_DateTextBox for choosing dates.
> I need to Localize the error message displayed when an invalid date is
> entered.
>
> I'm Using zend_translate (like this: $view->translate('tag') )
>
> setInvalidMessage sets a custom error message , but i dont know how to make
> zend_dojo translate this message as zend_validator does. Any thoughts?

I did not put translator support into the dijits for the reason that you
typically will do tooltip translations on the client-side, not server
side. Dojo has rich i18n capabilities, and dijit utilizes these. I'd
look into how to provide translations via Dojo for this.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: