PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 12, 2022

[FIXED] CJuiDateTimePicker showing Chinese characters for 'en' language setting

 January 12, 2022     datetimepicker, juice-ui, php, yii     No comments   

Issue

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?


Solution

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

Check out this thread on the forums



Answered By - deacs
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing