LocalizedToNormalized in a form troubles with coma

1 message Options
Embed this post
Permalink
whisher

LocalizedToNormalized in a form troubles with coma

Reply Threaded More More options
Print post
Permalink
(This post was updated on )
Hi.
In my bootstrap:
protected function _initIn18()
    {
        $translate = new Zend_Translate('array', APPLICATION_PATH . '/languages/en_US.php', 'en_US');
        $translate->addTranslation(APPLICATION_PATH . '/languages/it_IT.php', 'it_IT');
        $translate->setLocale('it_IT');
        Zend_Form::setDefaultTranslator($translate);
        $view = $this->getResource('view');
       
        $view->translate = new Zend_View_Helper_Translate($translate);
    }
In my form
$this->addElement('text', 'price', array(
            'maxlength' => 5,
            'label'      => 'form_Article_Label_Price',
            'required'   => true,
            'filters'    => array('StringTrim','LocalizedToNormalized'),
            'validators' => array(
            'Float',
            /*array('Between',false,array('0','99'))*/
            )
        ));
if I set for instance 3,95
I get 395
What's wrong in my code ? Bye