From b390e18d3452978742657bdb3ab5e205f5de82bf Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Fri, 9 Jan 2015 14:06:56 -0500 Subject: [PATCH] Improve i18n on course about page --- lms/templates/courseware/course_about.html | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index 2ed5cd1b11..6a6d2bd47b 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