diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 1f39148b2b1..9434948a9e8 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -14,7 +14,7 @@
var oc_requestlifespan = '';
var dayNames = t('Sunday'), (string)$l->t('Monday'), (string)$l->t('Tuesday'), (string)$l->t('Wednesday'), (string)$l->t('Thursday'), (string)$l->t('Friday'), (string)$l->t('Saturday'))) ?>;
var monthNames = t('January'), (string)$l->t('February'), (string)$l->t('March'), (string)$l->t('April'), (string)$l->t('May'), (string)$l->t('June'), (string)$l->t('July'), (string)$l->t('August'), (string)$l->t('September'), (string)$l->t('October'), (string)$l->t('November'), (string)$l->t('December'))) ?>;
- var firstDay = l('firstday')) ?>;
+ var firstDay = t('firstday')) ?>;
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 1f16fdf7c6c..009ee592738 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -16,7 +16,7 @@
var datepickerFormatDate = l('jsdate')) ?>;
var dayNames = t('Sunday'), (string)$l->t('Monday'), (string)$l->t('Tuesday'), (string)$l->t('Wednesday'), (string)$l->t('Thursday'), (string)$l->t('Friday'), (string)$l->t('Saturday'))) ?>;
var monthNames = t('January'), (string)$l->t('February'), (string)$l->t('March'), (string)$l->t('April'), (string)$l->t('May'), (string)$l->t('June'), (string)$l->t('July'), (string)$l->t('August'), (string)$l->t('September'), (string)$l->t('October'), (string)$l->t('November'), (string)$l->t('December'))) ?>;
- var firstDay = l('firstday')) ?>;
+ var firstDay = t('firstday')) ?>;