When you need to localize a localized date then simply chain the filters.
Something like:

->addFilter('LocalizedToNormalized', false, array('locale' => 'cz_CZ')
->addFilter('NormalizedToLocalized', false, array('locale' => 'en_US');

Or use Zend_Date... input from cz_CZ and output to en_US.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "WebCorp s.r.o. | Jan Juříček" <[email protected]>
To: <[email protected]>
Sent: Monday, September 28, 2009 8:44 AM
Subject: [fw-general] Get localised values in another locale


Hi



I have a form, where I have a field with validator Date with set locale
cs_CZ. That results in a need to fill the date in cs_CZ format (dd.mm.yyyy).
Is there any automatic way, how could I get all such in another locale, to
be specific en_US? I'd like to automate the process when my user specifies
"28.9.2009" and I just take that value and insert it into the DATE column in
MySQL table (which can't store the localised value) .



Thanks for any reply.



S pozdravem

Jan Juříček
WebCorp s.r.o.

Kancelář: Wichterlova 2372/10, 182 00 Praha
E-mail:  <mailto:[email protected]> [email protected] Web:
<http://www.webcorp.cz/> www.webcorp.cz
Tel.: (+420) 725 607 671, (+420) 725 607 670




Reply via email to