Commit bd7b2faa by Pavel Yushchenko

fixes register in cms, added localization to tabs

parent 18e9b4ce
......@@ -16,6 +16,9 @@ from xmodule.modulestore.django import modulestore
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']
......@@ -30,11 +33,11 @@ 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))
......
......@@ -142,7 +142,7 @@
</li>
<li class="field text" id="field-work-managing-experience">
<label for="work-managing-experience">${_('Managing experience at educational institution')}</label>
<input id="work-managing-experience" type="text" name="work-managing-experience" value="" required aria-required="true" />
<input id="work-managing-experience" type="text" name="work_managing_experience" value="" required aria-required="true" />
</li>
<li class="field select" id="field-work-qualification-category">
<label for="work-qualification-category">${_("Qualification category")}</label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment