diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html
index ae0de962b8..c337544576 100644
--- a/lms/templates/courseware/course_about.html
+++ b/lms/templates/courseware/course_about.html
@@ -1,12 +1,12 @@
-<%! from django.utils.translation import ugettext as _ %>
-<%!
- from django.core.urlresolvers import reverse
- from courseware.courses import course_image_url, get_course_about_section
- from django.conf import settings
- from edxmako.shortcuts import marketing_link
-%>
<%namespace name='static' file='../static_content.html'/>
-<%! from microsite_configuration import microsite %>
+<%!
+from microsite_configuration import microsite
+from django.utils.translation import ugettext as _
+from django.core.urlresolvers import reverse
+from courseware.courses import course_image_url, get_course_about_section
+from django.conf import settings
+from edxmako.shortcuts import marketing_link
+%>
<%inherit file="../main.html" />
<%block name="headextra">
@@ -44,7 +44,7 @@
}
if (jqXHR.status == 400) {
$("#register_error")
- .html(jqXHR.responseText ? jqXHR.responseText : "${_('An error occurred. Please try again later.')}")
+ .html(jqXHR.responseText ? jqXHR.responseText : "${_("An error occurred. Please try again later.")}")
.css("display", "block");
}
else if (jqXHR.status == 403) {
@@ -100,7 +100,7 @@
location.href = "${reverse('register_user')}?course_id=${course.id | u}&enrollment_action=enroll";
} else {
$('#register_error').html(
- (xhr.responseText ? xhr.responseText : 'An error occurred. Please try again later.')
+ (xhr.responseText ? xhr.responseText : "${_("An error occurred. Please try again later.")}")
).css("display", "block");
}
});
@@ -232,10 +232,10 @@
## want here (and on this whole page, really).
% if self.stanford_theme_enabled():
- Tweet that you've registered for this course
+ ${_("Tweet that you've registered for this course")}
- Email someone to say you've registered for this course
+ ${_("Email someone to say you've registered for this course")}
% else:
<%
@@ -271,13 +271,13 @@
).replace(u" ", u"%20")
%>
- Tweet that you've registered for this course
+ ${_("Tweet that you've registered for this course")}
- Post a Facebook message to say you've registered for this course
+ ${_("Post a Facebook message to say you've registered for this course")}
- Email someone to say you've registered for this course
+ ${_("Email someone to say you've registered for this course")}
% endif