From 49d13373e70fdc91f681a6032c8f4353ee9f1ce2 Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Mon, 7 Oct 2013 20:01:39 +0200 Subject: [PATCH 1/3] Update tabs.py fixes tab buttons of student's dahsboard for i18n --- 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 f897fa1378f0..3131775803bd 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)) From 164282d47d430f23083dc82e6c0b4954100bef1d Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Fri, 18 Oct 2013 21:06:12 +0200 Subject: [PATCH 2/3] Update tabs.py --- cms/djangoapps/contentstore/views/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/tabs.py b/cms/djangoapps/contentstore/views/tabs.py index 3131775803bd..f1b29e9a10ee 100644 --- a/cms/djangoapps/contentstore/views/tabs.py +++ b/cms/djangoapps/contentstore/views/tabs.py @@ -34,7 +34,7 @@ def initialize_course_tabs(course): # 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": "course_info", "name": _("Course Info")}, {"type": "discussion", "name": _("Discussion")}, {"type": "wiki", "name": _("Wiki")}, {"type": "progress", "name": _("Progress")}, From 26fdeee454173bee980c661e887bbbce5a9276de Mon Sep 17 00:00:00 2001 From: Olivier Marquez Date: Fri, 18 Oct 2013 21:07:48 +0200 Subject: [PATCH 3/3] Update AUTHORS --- AUTHORS | 1 + 1 file changed, 1 insertion(+) 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