diff options
Diffstat (limited to 'vendors/simile-timeline/timeline_js/scripts/l10n/zh')
-rw-r--r-- | vendors/simile-timeline/timeline_js/scripts/l10n/zh/labellers.js | 27 | ||||
-rw-r--r-- | vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js | 9 |
2 files changed, 36 insertions, 0 deletions
diff --git a/vendors/simile-timeline/timeline_js/scripts/l10n/zh/labellers.js b/vendors/simile-timeline/timeline_js/scripts/l10n/zh/labellers.js new file mode 100644 index 000000000..599f2d1a5 --- /dev/null +++ b/vendors/simile-timeline/timeline_js/scripts/l10n/zh/labellers.js @@ -0,0 +1,27 @@ +/*================================================== + * Localization of labellers.js + *================================================== + */ + +Timeline.GregorianDateLabeller.monthNames["zh"] = [ + "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" +]; + +Timeline.GregorianDateLabeller.labelIntervalFunctions["zh"] = 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 = Timeline.GregorianDateLabeller.getMonthName(date2.getUTCMonth(), this._locale) + + date2.getUTCDate() + "日"; + break; + default: + return this.defaultLabelInterval(date, intervalUnit); + } + + return { text: text, emphasized: emphasized }; +};
\ No newline at end of file diff --git a/vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js b/vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js new file mode 100644 index 000000000..94884929a --- /dev/null +++ b/vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js @@ -0,0 +1,9 @@ +/*================================================== + * Common localization strings + *================================================== + */ + +Timeline.strings["zh"] = { + wikiLinkLabel: "讨论" +}; + |