diff --git a/AUTHORS b/AUTHORS index 20719b5af7..b58c1853c8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -87,4 +87,4 @@ Miles Steele Kevin Luo Akshay Jagadeesh Marko Seric - +Felipe Montoya diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index 8de38022b7..88b911a745 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -21,6 +21,7 @@ from xmodule.exceptions import NotFoundError, ProcessingError from xblock.fields import Scope, String, Boolean, Dict, Integer, Float from .fields import Timedelta, Date from django.utils.timezone import UTC +from django.utils.translation import ugettext as _ log = logging.getLogger("mitx.courseware") @@ -348,7 +349,7 @@ class CapaModule(CapaFields, XModule): else: final_check = False - return "Final Check" if final_check else "Check" + return _("Final Check") if final_check else _("Check") def should_show_check_button(self): """ diff --git a/common/lib/xmodule/xmodule/js/fixtures/problem_content.html b/common/lib/xmodule/xmodule/js/fixtures/problem_content.html index 5ccce952e7..2ca5d8d23f 100644 --- a/common/lib/xmodule/xmodule/js/fixtures/problem_content.html +++ b/common/lib/xmodule/xmodule/js/fixtures/problem_content.html @@ -1,10 +1,10 @@ -

Problem Header

+

${_("Problem Header")}

-

Problem Content

+

${_("Problem Content")}

@@ -13,11 +13,11 @@ - - - - - Explanation + + + + + ${_("Explanation")}
diff --git a/lms/djangoapps/instructor/views/legacy.py b/lms/djangoapps/instructor/views/legacy.py index 749a7004aa..2efc7e1344 100644 --- a/lms/djangoapps/instructor/views/legacy.py +++ b/lms/djangoapps/instructor/views/legacy.py @@ -56,7 +56,7 @@ import track.views from mitxmako.shortcuts import render_to_string from xblock.field_data import DictFieldData from xblock.fields import ScopeIds - +from django.utils.translation import ugettext as _u from bulk_email.models import CourseEmail from html_to_text import html_to_text @@ -108,7 +108,7 @@ def instructor_dashboard(request, course_id): # assemble some course statistics for output to instructor def get_course_stats_table(): datatable = {'header': ['Statistic', 'Value'], - 'title': 'Course Statistics At A Glance', + 'title': _u('Course Statistics At A Glance'), } data = [['# Enrolled', CourseEnrollment.objects.filter(course_id=course_id, is_active=1).count()]] data += [['Date', timezone.now().isoformat()]] diff --git a/lms/templates/courseware/course_navigation.html b/lms/templates/courseware/course_navigation.html index 799b10b36b..303a12f142 100644 --- a/lms/templates/courseware/course_navigation.html +++ b/lms/templates/courseware/course_navigation.html @@ -47,9 +47,9 @@ masq = (function(){ var el = $('#staffstatus'); var setstat = function(status){ if (status=='student'){ - el.html('Student view'); + el.html('${_("Student view")}'); }else{ - el.html('Staff view'); + el.html('${_("Staff view")}'); } } setstat('${masquerade}'); diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 34fce25644..0a5892e3ea 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -368,7 +368,7 @@
- +
@@ -389,7 +389,7 @@
- +
diff --git a/lms/templates/instructor/instructor_dashboard_2/course_info.html b/lms/templates/instructor/instructor_dashboard_2/course_info.html index d2651d689f..9b4114d95c 100644 --- a/lms/templates/instructor/instructor_dashboard_2/course_info.html +++ b/lms/templates/instructor/instructor_dashboard_2/course_info.html @@ -1,7 +1,7 @@ <%! from django.utils.translation import ugettext as _ %> <%page args="section_data"/> -

Course Information

+

${_("Course Information")}

${_("Course Name")}: diff --git a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html index d3fc66d5c6..aeb8608543 100644 --- a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html +++ b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html @@ -29,7 +29,7 @@
- +
##

Instructor Dashboard

diff --git a/lms/templates/instructor/instructor_dashboard_2/student_admin.html b/lms/templates/instructor/instructor_dashboard_2/student_admin.html index 2ccef2164c..6b6da617f6 100644 --- a/lms/templates/instructor/instructor_dashboard_2/student_admin.html +++ b/lms/templates/instructor/instructor_dashboard_2/student_admin.html @@ -19,7 +19,7 @@ ## ## -

Specify a particular problem in the course here by its url:

+

${_('Specify a particular problem in the course here by its url:')}

${_('You may use just the "urlname" if a problem, or "modulename/urlname" if not. (For example, if the location is {location1}, then just provide the {urlname1}. If the location is {location2}, then provide {urlname2}.)').format( @@ -32,7 +32,7 @@ %if section_data['access']['instructor']: -

You may also delete the entire state of a student for the specified module:

+

${_('You may also delete the entire state of a student for the specified module:')}

%endif @@ -54,7 +54,7 @@ %if settings.MITX_FEATURES.get('ENABLE_INSTRUCTOR_BACKGROUND_TASKS') and section_data['access']['instructor']:
-

Course-specific grade adjustment

+

${_('Course-specific grade adjustment')}