Sha256: de3356756e2635c79a460814e0ddd3a675608cbbf35f0421830171904916b6bd

Contents?: true

Size: 992 Bytes

Versions: 7

Compression:

Stored size: 992 Bytes

Contents

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

Timeline.GregorianDateLabeller.monthNames["cs"] = [
    "Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"
];

Timeline.GregorianDateLabeller.dayNames["cs"] = [
    "Ne", "Po", "Út", "St", "Čt", "Pá", "So"
];

Timeline.GregorianDateLabeller.labelIntervalFunctions["cs"] = 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() + ". " + (date2.getUTCMonth() + 1) + ".";
        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/cs/labellers.js
muruca_widgets-0.2.4 generators/simile_timeline/templates/timeline_js/scripts/l10n/cs/labellers.js
muruca_widgets-0.2.3 generators/simile_timeline/templates/timeline_js/scripts/l10n/cs/labellers.js
muruca_widgets-0.2.2 generators/simile_timeline/templates/timeline_js/scripts/l10n/cs/labellers.js
muruca_widgets-0.2.1 generators/simile_timeline/templates/timeline_js/scripts/l10n/cs/labellers.js
muruca_widgets-0.2.0 generators/simile_timeline/templates/timeline_js/scripts/l10n/cs/labellers.js
muruca_widgets-0.1.0 generators/simile_timeline/templates/timeline_js/scripts/l10n/cs/labellers.js