Register jQuery ui i18n

I have a datepicker which i don’t render with a widget. I succesfully registered jquery ui by using:


Yii::app()->getClientScript()->registerCoreScript('jquery.ui');  

But i also want to register the i18n file of jquery ui. How can i do this?

Hi!

This one worked for me, it’s based on the CJuiWidget class code:


Yii::app()->clientScript->registerScriptFile(Yii::app()->getClientScript()->getCoreScriptUrl() . '/jui/js/jquery-ui-i18n.min.js');