Commit 8dc47f57 by Andy Armstrong Committed by GitHub

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

Fix i18n for the page title in course tabs
parents 2cb2e5e3 9cb906cb
## mako ## mako
<%page expression_filter="h"/> <%page expression_filter="h"/>
<%! <%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML from openedx.core.djangolib.markup import HTML
%> %>
...@@ -20,7 +22,7 @@ ${HTML(fragment.head_html())} ...@@ -20,7 +22,7 @@ ${HTML(fragment.head_html())}
${HTML(fragment.foot_html())} ${HTML(fragment.foot_html())}
</%block> </%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" /> <%include file="/courseware/course_navigation.html" args="active_page=active_page" />
......
## mako ## mako
<%page expression_filter="h"/>
<%! main_css = "style-main-v2" %> <%! main_css = "style-main-v2" %>
<%page expression_filter="h"/>
<%! <%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML from openedx.core.djangolib.markup import HTML
%> %>
...@@ -14,7 +16,7 @@ from openedx.core.djangolib.markup import HTML ...@@ -14,7 +16,7 @@ from openedx.core.djangolib.markup import HTML
<%def name="online_help_token()"><% return "${tab['online_help_token']}" %></%def> <%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" /> <%include file="/courseware/course_navigation.html" args="active_page=active_page" />
......
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
## Override the default styles_version to use Bootstrap ## Override the default styles_version to use Bootstrap
<%! main_css = "css/bootstrap/lms-main.css" %> <%! main_css = "css/bootstrap/lms-main.css" %>
<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML
%>
<%inherit file="/main.html" /> <%inherit file="/main.html" />
<%namespace name='static' file='/static_content.html'/> <%namespace name='static' file='/static_content.html'/>
...@@ -12,14 +17,10 @@ ...@@ -12,14 +17,10 @@
<%def name="online_help_token()"><% return "${tab['online_help_token']}" %></%def> <%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" /> <%include file="/courseware/course_navigation.html" args="active_page=active_page" />
<%!
from openedx.core.djangolib.markup import HTML
%>
<%block name="head_extra"> <%block name="head_extra">
${HTML(fragment.head_html())} ${HTML(fragment.head_html())}
</%block> </%block>
......
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