diff --git a/AUTHORS b/AUTHORS index 94963e463041..d6e6f7e99db5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -89,3 +89,4 @@ Akshay Jagadeesh Nick Parlante Marko Seric Felipe Montoya +Olivier Marquez diff --git a/cms/djangoapps/contentstore/views/tabs.py b/cms/djangoapps/contentstore/views/tabs.py index f897fa1378f0..f1b29e9a10ee 100644 --- a/cms/djangoapps/contentstore/views/tabs.py +++ b/cms/djangoapps/contentstore/views/tabs.py @@ -16,6 +16,7 @@ from ..utils import get_course_for_item, get_modulestore from .access import get_location_and_verify_access +from django.utils.translation import ugettext as _ __all__ = ['edit_tabs', 'reorder_static_tabs', 'static_pages'] @@ -31,11 +32,13 @@ def initialize_course_tabs(course): # This logic is repeated in xmodule/modulestore/tests/factories.py # so if you change anything here, you need to also change it there. - course.tabs = [{"type": "courseware"}, - {"type": "course_info", "name": "Course Info"}, - {"type": "discussion", "name": "Discussion"}, - {"type": "wiki", "name": "Wiki"}, - {"type": "progress", "name": "Progress"}] + course.tabs = [ + {"type": "courseware", "name": _("Courseware")}, + {"type": "course_info", "name": _("Course Info")}, + {"type": "discussion", "name": _("Discussion")}, + {"type": "wiki", "name": _("Wiki")}, + {"type": "progress", "name": _("Progress")}, + ] modulestore('direct').update_metadata(course.location.url(), own_metadata(course))