From 2bee02a10a4589d59dd2ac996da25450a9720cfb Mon Sep 17 00:00:00 2001 From: Brian Jacobel Date: Mon, 11 Apr 2016 11:14:51 -0400 Subject: [PATCH] Fix gettext errors by including /js/i18n/LANGUAGE_CODE/djangojs.js in Django template --- lms/templates/main_django.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lms/templates/main_django.html b/lms/templates/main_django.html index 80dafdf974..f39e10cd8e 100644 --- a/lms/templates/main_django.html +++ b/lms/templates/main_django.html @@ -1,12 +1,16 @@ -{% load sekizai_tags i18n microsite pipeline optional_include %} +{% load sekizai_tags i18n microsite pipeline optional_include staticfiles %} {% load url from future %} {% block title %}{% platform_name %}{% endblock %} - + + + {% with "js/i18n/"|add:LANGUAGE_CODE|add:"/djangojs.js" as i18njs_path %} + + {% endwith %} {% stylesheet 'style-vendor' %} {% stylesheet 'style-main-v1' %}