dilab

dilab does not currently provide support for this item.

Popular questions for this item

Localize the Datepicker

  1. Download your language js file from http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/. For example: jquery.ui.datepicker-en-GB.js
  2. Save your js language file to “app/webroot/js/jquery.ui.datepicker-en-GB.js”
  3. Open file app/views/layouts/home.ctp and add the js language file as follow:
     
    <?php        
    
            echo $javascript->link('jquery-1.4.2.min'); 
            echo $javascript->link('jquery-ui.min'); 
            echo $javascript->link('jquery.ui.datepicker-en-GB.js'); 
            echo $html->css('jui/ui-lightness/jquery-ui');
            echo $html->css('style');
    
            echo $scripts_for_layout;
        ?>
    
  4. Open file “app/views/homes/index.ctp”, and scroll to the bottom. Change the this function
    $('#datepicker').datepicker(
                    {        
                    minDate: 0,
                    beforeShowDay: setFullDays,
                    onSelect: checkThisDay
                    }
            );
    

    To

    
    $('#datepicker').datepicker(
                    $.datepicker.regional['en-GB'],
                    {        
                    minDate: 0,
                    beforeShowDay: setFullDays,
                    onSelect: checkThisDay
                    }
    );
    
    
by
by
by
by
by
by