From 6477c8109776dde04b1ebf2c184ff4cdf7f3ede9 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 22 Nov 2017 11:13:35 -0700 Subject: [PATCH] Translate days of the week --- api/js/etemplate/lib/date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/lib/date.js b/api/js/etemplate/lib/date.js index aa36604e84..15777ce4a8 100644 --- a/api/js/etemplate/lib/date.js +++ b/api/js/etemplate/lib/date.js @@ -82,7 +82,7 @@ function date (format, timestamp) { return jsdate.getDate(); }, l: function () { // Full day name; Monday...Sunday - return txt_words[f.w()] + 'day'; + return egw && egw.lang ? egw.lang(txt_words[f.w()] + 'day') : txt_words[f.w()] + 'day'; }, N: function () { // ISO-8601 day of week; 1[Mon]..7[Sun] return f.w() || 7;