From 78c917570e2182bfdd8f5cb7eb5cb2c71d8df6f0 Mon Sep 17 00:00:00 2001 From: Randy Bertram Date: Tue, 9 Sep 2014 17:28:17 -0400 Subject: Datepicker locale support Also adds general language info to the horizon JS object. Change-Id: I8fbf20635ac0a2ae1f3b8f618ce5a37eb53e9cc0 Closes-Bug: 1274145 --- horizon/templates/horizon/_scripts.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'horizon/templates/horizon/_scripts.html') diff --git a/horizon/templates/horizon/_scripts.html b/horizon/templates/horizon/_scripts.html index bd87edebd..3e3ec4fbb 100644 --- a/horizon/templates/horizon/_scripts.html +++ b/horizon/templates/horizon/_scripts.html @@ -1,5 +1,8 @@ {% load compress %} {% load url from future %} +{% load datepicker_locale from horizon %} + +{% datepicker_locale as DATEPICKER_LOCALE %} {% comment %} Django's JavaScript i18n Implementation {% endcomment %} @@ -29,6 +32,9 @@ +{% ifnotequal DATEPICKER_LOCALE 'en' %} + +{% endifnotequal %} -- cgit v1.2.1