From f3158820adf89f5729c025e5d6e5566e4f89dd7d Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Thu, 24 Oct 2013 21:28:37 +0200 Subject: [PATCH 1/3] Update tabs.py --- cms/djangoapps/contentstore/views/tabs.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cms/djangoapps/contentstore/views/tabs.py b/cms/djangoapps/contentstore/views/tabs.py index d19f4ae6a3b1..980fc39b0020 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,12 +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 bd2c3ece19c04c1c324cfa8e2570d72d1e68cb5e Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Thu, 24 Oct 2013 21:31:26 +0200 Subject: [PATCH 2/3] Update AUTHORS --- AUTHORS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AUTHORS b/AUTHORS index 951570ee8b4d..c80b11b03df8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -92,3 +92,5 @@ Felipe Montoya Julia Hansbrough Pavel Yushchenko Nicolas Chevalier +Olivier Marquez + From b538b03839672d2ce1b220caf1140b26b4fd6e76 Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Fri, 25 Oct 2013 08:08:34 +0200 Subject: [PATCH 3/3] Update tabs.py --- cms/djangoapps/contentstore/views/tabs.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cms/djangoapps/contentstore/views/tabs.py b/cms/djangoapps/contentstore/views/tabs.py index 980fc39b0020..2f345314769a 100644 --- a/cms/djangoapps/contentstore/views/tabs.py +++ b/cms/djangoapps/contentstore/views/tabs.py @@ -32,12 +32,12 @@ 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", "name": _("Courseware")}, -+ {"type": "course_info", "name": _("Course Info")}, -+ {"type": "discussion", "name": _("Discussion")}, -+ {"type": "wiki", "name": _("Wiki")}, -+ {"type": "progress", "name": _("Progress")}, -+ ] + {"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))