Changeset 7382

Show
Ignore:
Timestamp:
02/20/07 15:45:00 (23 months ago)
Author:
peller
Message:

Remove gregorianExtras.js files. Fixes #2328

Location:
trunk/src
Files:
2 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/date/format.js

    r6908 r7382  
    1212// names and formats 
    1313dojo.requireLocalization("dojo.i18n.cldr", "gregorian"); 
    14 dojo.requireLocalization("dojo.i18n.cldr", "gregorianExtras"); 
    1514 
    1615//NOTE: Everything in this module assumes Gregorian calendars. 
     
    2928//              formatting lengths may be chosen, with "full" used by default. 
    3029//              Custom patterns may be used or registered with translations using 
    31 //              the addCustomBundle method. 
     30//              the addCustomFormats method. 
    3231//              Formatting patterns are implemented using the syntax described at 
    3332//              http://www.unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns 
     
    216215        var str = []; 
    217216        var sauce = dojo.lang.curry(this, formatPattern, dateObject); 
     217        if(options.selector == "yearOnly"){ 
     218                // Special case as this is not yet driven by CLDR data 
     219                var year = dateObject.getFullYear(); 
     220                if(locale.match(/^zh|^ja/)){ 
     221                        year += "\u5E74"; 
     222                } 
     223                return year; 
     224        } 
    218225        if(options.selector != "timeOnly"){ 
    219226                var datePattern = options.datePattern || info["dateFormat-"+formatLength]; 
     
    240247//              formatting lengths may be chosen, with "full" used by default. 
    241248//              Custom patterns may be used or registered with translations using 
    242 //              the addCustomBundle method. 
     249//              the addCustomFormats method. 
    243250//              Formatting patterns are implemented using the syntax described at 
    244251//              http://www.unicode.org/reports/tr35/#Date_Format_Patterns 
     
    806813 
    807814dojo.date.addCustomFormats("dojo.i18n.cldr","gregorian"); 
    808 dojo.date.addCustomFormats("dojo.i18n.cldr","gregorianExtras"); 
    809815 
    810816dojo.date.getNames = function(/*String*/item, /*String*/type, /*String?*/use, /*String?*/locale){ 
  • trunk/src/widget/DatePicker.js

    r7178 r7382  
    415415                        function f(n){ 
    416416                                that[n+"YearLabelNode"].innerHTML = 
    417                                         dojo.date.format(new Date(y++, 0), {formatLength:'yearOnly', locale:that.lang}); 
     417                                        dojo.date.format(new Date(y++, 0), {selector:'yearOnly', locale:that.lang}); 
    418418                        } 
    419419                        f("previous");