31 lines
992 B
JavaScript
31 lines
992 B
JavaScript
|
/*==================================================
|
|||
|
* Localization of labellers.js
|
|||
|
*==================================================
|
|||
|
*/
|
|||
|
|
|||
|
Timeline.GregorianDateLabeller.monthNames["cs"] = [
|
|||
|
"Leden", "<22>nor", "B<>ezen", "Duben", "Kv<4B>ten", "<22>erven", "<22>ervenec", "Srpen", "Z<><5A><EFBFBD>", "<22><>jen", "Listopad", "Prosinec"
|
|||
|
];
|
|||
|
|
|||
|
Timeline.GregorianDateLabeller.dayNames["cs"] = [
|
|||
|
"Ne", "Po", "<22>t", "St", "<22>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 };
|
|||
|
};
|