Yii Framework Forum: Yii :: Cjuidatetimepicker Is Not Supporting English Language - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii :: Cjuidatetimepicker Is Not Supporting English Language Rate Topic: -----

#1 User is offline   Selim 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 12-November 13
  • Location:Dhaka, Bangladesh

Posted 08 December 2013 - 01:04 AM

I am using CJuiDateTimePicker in my yii application but can't changed the language to English. It has default de/fr language. How can I change the language to ENGLISH

Here is the CODE::

<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
$this->widget('CJuiDateTimePicker',array(
'model'=>$model, //Model object
'attribute'=>'pp_date', //attribute name
'language'=> 'de',
'mode'=>'date',
'options'=>array(
//'showAnim' => 'fold',
'showAnim'=>'fold',
'changeMonth' => 'true',
'changeYear' => 'true',
'showOtherMonths' => 'true',
'selectOtherMonths' => 'true',
'showOn' => 'both',
'buttonImageOnly' => 'true',
'yearRange' => 'c-100:c'
),
//'options'=>array('showAnim'=>'fold') // jquery plugin options
));

?>
0

#2 User is offline   KryDos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 10-November 13
  • Location:UA

Posted 08 December 2013 - 03:03 AM

You need change the 'language' attribute to 'en'. If it didn't help you, you can set the 'language' attribute to 'en' into your main config.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users