Sha256: 815e5260104dfdd4707ba59204e14c331dd205937b8a3bb5b9747e2bbdf3570c

Contents?: true

Size: 891 Bytes

Versions: 7

Compression:

Stored size: 891 Bytes

Contents

/*==================================================
 *  Localization of labellers.js
 *==================================================
 */

Timeline.GregorianDateLabeller.monthNames["de"] = [
    "Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"
];

Timeline.GregorianDateLabeller.labelIntervalFunctions["de"] = function(date, intervalUnit) {
    var text;
    var emphasized = false;
    
    var date2 = Timeline.DateTime.removeTimeZoneOffset(date, this._timeZone);
    
    switch(intervalUnit) {
    case Timeline.DateTime.DAY:
    case Timeline.DateTime.WEEK:
        text = date2.getUTCDate() + ". " +
            Timeline.GregorianDateLabeller.getMonthName(date2.getUTCMonth(), this._locale);
        break;
    default:
        return this.defaultLabelInterval(date, intervalUnit);
    }
    
    return { text: text, emphasized: emphasized };
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
muruca_widgets-0.2.6 generators/simile_timeline/templates/timeline_js/scripts/l10n/de/labellers.js
muruca_widgets-0.2.4 generators/simile_timeline/templates/timeline_js/scripts/l10n/de/labellers.js
muruca_widgets-0.2.3 generators/simile_timeline/templates/timeline_js/scripts/l10n/de/labellers.js
muruca_widgets-0.2.2 generators/simile_timeline/templates/timeline_js/scripts/l10n/de/labellers.js
muruca_widgets-0.2.1 generators/simile_timeline/templates/timeline_js/scripts/l10n/de/labellers.js
muruca_widgets-0.2.0 generators/simile_timeline/templates/timeline_js/scripts/l10n/de/labellers.js
muruca_widgets-0.1.0 generators/simile_timeline/templates/timeline_js/scripts/l10n/de/labellers.js