Unverified Commit 7d57955f by Ned Batchelder Committed by GitHub

Merge pull request #16349 from edx/andya/ginkgo/fix-browser-tab-i18n

Fix i18n for the page title in course tabs
parents 8b01af1c fd44fdc3
## mako
<%page expression_filter="h"/>
<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML
%>
......@@ -20,7 +22,7 @@ ${HTML(fragment.head_html())}
${HTML(fragment.foot_html())}
</%block>
<%block name="pagetitle">${tab['name']} | ${course.display_number_with_default}</%block>
<%block name="pagetitle">${_(tab['name'])} | ${course.display_number_with_default}</%block>
<%include file="/courseware/course_navigation.html" args="active_page=active_page" />
......
......@@ -7,6 +7,11 @@
from openedx.core.djangolib.markup import HTML
%>
<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML
%>
<%inherit file="/main.html" />
<%namespace name='static' file='/static_content.html'/>
......@@ -14,7 +19,7 @@ from openedx.core.djangolib.markup import HTML
<%def name="online_help_token()"><% return "${tab['online_help_token']}" %></%def>
<%block name="pagetitle">${tab['name']} | ${course.display_number_with_default}</%block>
<%block name="pagetitle">${_(tab['name'])} | ${course.display_number_with_default}</%block>
<%include file="/courseware/course_navigation.html" args="active_page=active_page" />
......
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