31 lines
992 B
JavaScript
31 lines
992 B
JavaScript
/*==================================================
|
|
* 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 };
|
|
};
|