I found the solution
‘language’=>Yii::app()->language
I found the solution
‘language’=>Yii::app()->language
simple use en-AU , this will work
[SOLVED]
The problem is with the CJuiDataPicker implementation that is loading a unique and merged jquery-ui-i18n.js file with all the languages. That file (apart from configuring languages) is executing default language for each one. So the last one is zh-TW (
$.datepicker.setDefaults($.datepicker.regional['zh-TW'])
) and that is probabably the one you can see in Calendar.
The solution is cloning your own [size="2"]jquery-ui-i18n.js removing all "setDefaults" lines, and mapping it using scriptMap in your app configuration:[/size]
'clientScript'=>array(
'scriptMap'=>array(
'jquery-ui-i18n.js' => '/js/jquery/jquery.ui.datepicker-i18n.js', //To fix default Yii datapicker i18n
'jquery-ui-i18n.min.js' => '/js/jquery/jquery.ui.datepicker-i18n.min.js', //To fix default Yii datapicker i18n
),
)
Another solution is using CWidgetFactory in application main config.
Another last solution (less general) is to set your own cloned language file each time you use CJuiDatePicker using the property "[size="2"]$i18nScriptFile".[/size]