diff options
Diffstat (limited to 'vendors/simile-timeline/timeline_js/scripts/l10n/de')
-rw-r--r-- | vendors/simile-timeline/timeline_js/scripts/l10n/de/labellers.js | 27 | ||||
-rw-r--r-- | vendors/simile-timeline/timeline_js/scripts/l10n/de/timeline.js | 8 |
2 files changed, 35 insertions, 0 deletions
diff --git a/vendors/simile-timeline/timeline_js/scripts/l10n/de/labellers.js b/vendors/simile-timeline/timeline_js/scripts/l10n/de/labellers.js new file mode 100644 index 000000000..f0eb7df1c --- /dev/null +++ b/vendors/simile-timeline/timeline_js/scripts/l10n/de/labellers.js @@ -0,0 +1,27 @@ +/*================================================== + * Localization of labellers.js + *================================================== + */ + +Timeline.GregorianDateLabeller.monthNames["de"] = [ + "Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez" +]; + +Timeline.GregorianDateLabeller.labelIntervalFunctions["de"] = 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() + ". " + + Timeline.GregorianDateLabeller.getMonthName(date2.getUTCMonth(), this._locale); + 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/de/timeline.js b/vendors/simile-timeline/timeline_js/scripts/l10n/de/timeline.js new file mode 100644 index 000000000..7292cef29 --- /dev/null +++ b/vendors/simile-timeline/timeline_js/scripts/l10n/de/timeline.js @@ -0,0 +1,8 @@ +/*================================================== + * Common localization strings + *================================================== + */ + +Timeline.strings["de"] = { + wikiLinkLabel: "Diskutieren" +}; |