Of course. And the datepicker workes correctly after removing the plugin.
I asked the developer of this plugin, what his plugin does in the background:
curious: why does the datepicker changes to asian character, not english - which could be an default behavior?
Are there any connections between CJuiDatepicker an asian characters?
Or is it possible, that Yii fires an default value in an specific situation?
…see the file at the attachment… this is the result of the following code:
<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
array('model'=>$model,
'attribute'=>'ENDDATE',
'language'=>'de',
// additional javascript options for the date picker plugin
'options'=>array('showAnim'=>'fold',),
'htmlOptions'=>array('style'=>'height:20px;'),
));?>
//Edit/Update:
I did a little experiment: removing jqPlugin form the page,
CJuiDialog works fine in the preferences language (de, es, whatever).
Then, I add the following code from this example: http://docs.jquery.com/UI/Datepicker/setDefaults#code
to get an additional input field with the originally jQuery Datepicker:
<script>
$(function() {
$.datepicker.setDefaults($.datepicker.regional['de']);
$( "#datepicker" ).datepicker();
$.datepicker.setDefaults($.datepicker.regional['de']);
});
</script>
<div class="demo">
<p>Date: <input id="datepicker" type="text"></p>
</div>
The result is: the CJuiDatepicker widget from Yii shows the date format es expected (in german)
The additional, original datepicker comes up in traditional Chinese!?
Next experiment: i remove the CJuiDatepicker. Now, only the original datepicker ($( “#datepicker” ).datepicker();$.datepicker.setDefaults($.datepicker.regional[‘de’])
is part of the page.
In this case, the datepicker is’n in Chinese language anymore. It’s English, still ignoring the: $.datepicker.setDefaults($.datepicker.regional[‘de’]);
Any ideas?