From c802d5bc641c8f2f4e6bc6c435ffc87de76d0e2c Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Fri, 25 Oct 2013 23:01:45 +0200 Subject: [PATCH 1/2] Update tabs.py --- cms/djangoapps/contentstore/views/tabs.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cms/djangoapps/contentstore/views/tabs.py b/cms/djangoapps/contentstore/views/tabs.py index d19f4ae6a3b1..4720d2325c95 100644 --- a/cms/djangoapps/contentstore/views/tabs.py +++ b/cms/djangoapps/contentstore/views/tabs.py @@ -15,6 +15,7 @@ from ..utils import get_course_for_item, get_modulestore +from django.utils.translation import ugettext as _ __all__ = ['edit_tabs', 'reorder_static_tabs'] @@ -30,11 +31,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)) From 4567eda36ba9fc7e44dcdb3009cfb8d89ad938e0 Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Fri, 25 Oct 2013 23:04:00 +0200 Subject: [PATCH 2/2] Update AUTHORS --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 951570ee8b4d..c8f279cf1caa 100644 --- a/AUTHORS +++ b/AUTHORS @@ -92,3 +92,4 @@ Felipe Montoya Julia Hansbrough Pavel Yushchenko Nicolas Chevalier +Olivier Marquez