Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
fd44fdc3
Commit
fd44fdc3
authored
Oct 25, 2017
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix i18n for the page title in course tabs
parent
8b01af1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lms/templates/courseware/static_tab.html
+3
-1
lms/templates/courseware/tab-view.html
+6
-1
No files found.
lms/templates/courseware/static_tab.html
View file @
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"
/>
...
...
lms/templates/courseware/tab-view.html
View file @
fd44fdc3
...
...
@@ -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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment