diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:50 -0300 |
commit | 971b54fe719ed70704fb3bcac4ef1d5f093cb454 (patch) | |
tree | 26e090c444b1e34881bc088a9cd6f3223e26047a /mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh | |
parent | 711dab09b5146e74dbeda56679c65e3b6bec71f3 (diff) | |
parent | 36102a094de700ee339f6eaeffb8ab16ba4f2f3b (diff) | |
download | elgg-971b54fe719ed70704fb3bcac4ef1d5f093cb454.tar.gz elgg-971b54fe719ed70704fb3bcac4ef1d5f093cb454.tar.bz2 |
Merge commit '36102a094de700ee339f6eaeffb8ab16ba4f2f3b' as 'mod/graphstats'
Diffstat (limited to 'mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh')
-rw-r--r-- | mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh/labellers.js | 27 | ||||
-rw-r--r-- | mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js | 9 |
2 files changed, 36 insertions, 0 deletions
diff --git a/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh/labellers.js b/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh/labellers.js new file mode 100644 index 000000000..599f2d1a5 --- /dev/null +++ b/mod/graphstats/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/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js b/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js new file mode 100644 index 000000000..94884929a --- /dev/null +++ b/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/zh/timeline.js @@ -0,0 +1,9 @@ +/*================================================== + * Common localization strings + *================================================== + */ + +Timeline.strings["zh"] = { + wikiLinkLabel: "讨论" +}; + |