2

I toggle language setting ('en' or 'ru') for CJuiDateTimePicker in yii:

$this->widget('ext.CJuiDateTimePicker.CJuiDateTimePicker',array(
        'model'=>$model,
        'attribute'=>'Begin',
        'language'=> substr(Yii::app()->getLanguage(), 0, 2), // Yii::app()->language, 
        // 'options'=>$options, 
        )); 

but the widget still shows Chinese characters for months in case of English language setting ('en'):enter image description here

I followed this comment with no avail: http://www.yiiframework.com/extension/juidatetimepicker/#c12617 What's wrong?

Community
  • 1
  • 1
Igor Savinkin
  • 5,669
  • 8
  • 37
  • 69

1 Answers1

1

Try 'language'=> 'en-GB' as the value for English.

Check out this thread on the forums

deacs
  • 4,259
  • 2
  • 27
  • 37