From e6931f76ee5a8082ec6a421e5adac56ef6aeebc0 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 22 Nov 2017 11:30:14 -0700 Subject: [PATCH] Translate months too --- 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 15777ce4a8..4476fbd43c 100644 --- a/api/js/etemplate/lib/date.js +++ b/api/js/etemplate/lib/date.js @@ -109,7 +109,7 @@ function date (format, timestamp) { // Month F: function () { // Full month name; January...December - return txt_words[6 + f.n()]; + return egw && egw.lang ? egw.lang(txt_words[6 + f.n()]) : txt_words[6 + f.n()]; }, m: function () { // Month w/leading 0; 01...12 return _pad(f.n(), 2);