Hi, would anyone please teach me how to set/change/edit the language displayed in the "EJuiDateTimePicker" extension?
http://www.yiiframework.com/extension/ejuidatetimepicker
I’d like to display the strings in Spanish. I’ve already tried to:
- Set ‘language’=>‘es’ in the options:
<?php
$this->widget('application.extensions.timepicker.EJuiDateTimePicker',array(
'model'=>$model,
'attribute'=>'my_date',
'options'=>array(
'language' => 'es',
),
));
?>
-
Edit: protected/extensions/timepicker/assets/jquery-ui-timepicker-addon.js (example: line 25, “currentText: ‘Now’” to “currentText: ‘Ahora’”)
-
Edit: protected/extensions/timepicker/assets/jquery-ui-timepicker-addon.min.js
But none of this has suceeded. Using CJuiDatePicker, the language change become effective by setting ‘language’ to ‘es’ in the options.
Any ideas?
Thanks in advance!
Edit: Solved! Got to follow the instructions at http://docs.jquery.com/UI/Datepicker/Localization and also set the "language" option as follows:
<?php
$this->widget('application.extensions.timepicker.EJuiDateTimePicker',array(
'model'=>$model,
'attribute'=>'my_date',
'language' => 'es',
));
?>
Hope this helps to other people in the future! Thanks.