public/javascripts/yui/calendar/calendar.js
function(type, args, obj) {

        type = type.toLowerCase();

        var val = args[0],
            cfg = this.cfg,
            Locale = this.Locale;

        switch (type) {
            case DEF_CFG.LOCALE_MONTHS.key:
                switch (val) {
                    case Calendar.SHORT:
                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_SHORT.key).concat();
                        break;
                    case Calendar.LONG:
                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_LONG.key).concat();
                        break;
                }
                break;
            case DEF_CFG.LOCALE_WEEKDAYS.key:
                switch (val) {
                    case Calendar.ONE_CHAR:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_1CHAR.key).concat();
                        break;
                    case Calendar.SHORT:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_SHORT.key).concat();
                        break;
                    case Calendar.MEDIUM:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_MEDIUM.key).concat();
                        break;
                    case Calendar.LONG:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_LONG.key).concat();
                        break;
                }
                
                var START_WEEKDAY = cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
    
                if (START_WEEKDAY > 0) {
                    for (var w=0; w < START_WEEKDAY; ++w) {
                        Locale.LOCALE_WEEKDAYS.push(Locale.LOCALE_WEEKDAYS.shift());
                    }
                }
                break;
        }
    }
function(type, args, obj) {

        type = type.toLowerCase();

        var val = args[0],
            cfg = this.cfg,
            Locale = this.Locale;

        switch (type) {
            case DEF_CFG.LOCALE_MONTHS.key:
                switch (val) {
                    case Calendar.SHORT:
                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_SHORT.key).concat();
                        break;
                    case Calendar.LONG:
                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_LONG.key).concat();
                        break;
                }
                break;
            case DEF_CFG.LOCALE_WEEKDAYS.key:
                switch (val) {
                    case Calendar.ONE_CHAR:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_1CHAR.key).concat();
                        break;
                    case Calendar.SHORT:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_SHORT.key).concat();
                        break;
                    case Calendar.MEDIUM:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_MEDIUM.key).concat();
                        break;
                    case Calendar.LONG:
                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_LONG.key).concat();
                        break;
                }
                
                var START_WEEKDAY = cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
    
                if (START_WEEKDAY > 0) {
                    for (var w=0; w < START_WEEKDAY; ++w) {
                        Locale.LOCALE_WEEKDAYS.push(Locale.LOCALE_WEEKDAYS.shift());
                    }
                }
                break;
        }
    }
function ( type , args , obj ) { type = type . toLowerCase ( ) ; var val = args [ 0 ] , cfg = this . cfg , Locale = this . Locale ; switch ( type ) { case DEF_CFG . LOCALE_MONTHS . key : switch ( val ) { case Calendar . SHORT : Locale . LOCALE_MONTHS = cfg . getProperty ( DEF_CFG . MONTHS_SHORT . key ) . concat ( ) ; break ; case Calendar . LONG : Locale . LOCALE_MONTHS = cfg . getProperty ( DEF_CFG . MONTHS_LONG . key ) . concat ( ) ; break ; } break ; case DEF_CFG . LOCALE_WEEKDAYS . key : switch ( val ) { case Calendar . ONE_CHAR : Locale . LOCALE_WEEKDAYS = cfg . getProperty ( DEF_CFG . WEEKDAYS_1CHAR . key ) . concat ( ) ; break ; case Calendar . SHORT : Locale . LOCALE_WEEKDAYS = cfg . getProperty ( DEF_CFG . WEEKDAYS_SHORT . key ) . concat ( ) ; break ; case Calendar . MEDIUM : Locale . LOCALE_WEEKDAYS = cfg . getProperty ( DEF_CFG . WEEKDAYS_MEDIUM . key ) . concat ( ) ; break ; case Calendar . LONG : Locale . LOCALE_WEEKDAYS = cfg . getProperty ( DEF_CFG . WEEKDAYS_LONG . key ) . concat ( ) ; break ; } var START_WEEKDAY = cfg . getProperty ( DEF_CFG . START_WEEKDAY . key ) ; if ( START_WEEKDAY > 0 ) { for ( var w = 0 ; w < START_WEEKDAY ; ++ w ) { Locale . LOCALE_WEEKDAYS . push ( Locale . LOCALE_WEEKDAYS . shift ( ) ) ; } } break ; } }
The default handler for all configuration locale field length properties
@method configLocaleValues
The default handler for all configuration locale field length properties