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/vi | |
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/vi')
-rw-r--r-- | mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/labellers.js | 26 | ||||
-rw-r--r-- | mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/timeline.js | 9 |
2 files changed, 35 insertions, 0 deletions
diff --git a/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/labellers.js b/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/labellers.js new file mode 100644 index 000000000..85994d029 --- /dev/null +++ b/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/labellers.js @@ -0,0 +1,26 @@ +/*================================================== + * Localization of labellers.js + *================================================== + */ + +Timeline.GregorianDateLabeller.monthNames["vi"] = [ + "Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Thá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 }; +}; diff --git a/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/timeline.js b/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/timeline.js new file mode 100644 index 000000000..a67befc48 --- /dev/null +++ b/mod/graphstats/vendors/simile-timeline/timeline_js/scripts/l10n/vi/timeline.js @@ -0,0 +1,9 @@ +/*================================================== + * Common localization strings + *================================================== + */ + +Timeline.strings["vi"] = { + wikiLinkLabel: "Bà€n luĂ¢̀£n" +}; + |