westdc-zf1/htdocs/js/timeline_js/scripts/l10n/vi/labellers.js

27 lines
877 B
JavaScript
Raw Normal View History

2009-12-20 06:35:29 +00:00
/*==================================================
* Localization of labellers.js
*==================================================
*/
Timeline.GregorianDateLabeller.monthNames["vi"] = [
"Th<54>ng 1", "Th<54>ng 2", "Th<54>ng 3", "Th<54>ng 4", "Th<54>ng 5", "Th<54>ng 6", "Th<54>ng 7", "Th<54>ng 8", "Th<54>ng 9", "Th<54>ng 10", "Th<54>ng 11", "Th<54>ng 12"
];
Timeline.GregorianDateLabeller.labelIntervalFunctions["vi"] = 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 };
};