Change localization of EJuiTimePicker timeonly=true

Hi guys.

I can´t change completely the localization of EJuiTimePicker extension when property


timeonly = true. 

The only buttons were changed to my localization(pt), the remainder still in english.(Header, minutes, hour etc.).

My call of extension:


$this->widget('ext.EJuiTimePicker.EJuiTimePicker',array(

	'model'=>$model,

	'attribute'=>'hora_retificada',

	'options'=>array(

		'hourGrid' => 4,

                 'language'=>'pt',

		'hourMax' => 23,

		'timeFormat' => 'hh:mm',

		'changeMonth' => false,

		'changeYear' => false,

		'timeOnly'=>true

	       ),

    ));

What what I’m doing wrong or do I need to do to solve this problem?

Thanks!

Even if the post is a bit old, I answer for future visitors. You are putting the ‘language’ as an option inside the array “option” and language goes outside it

This should work:




$this->widget('ext.EJuiTimePicker.EJuiTimePicker',array(

        'model'=>$model,

        'attribute'=>'hora_retificada',

        'language'=>'pt',

        'options'=>array(

                'hourGrid' => 4,                 

                'hourMax' => 23,

                'timeFormat' => 'hh:mm',

                'changeMonth' => false,

                'changeYear' => false,

                'timeOnly'=>true

               ),

    ));