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
454a0ada
Commit
454a0ada
authored
Jul 24, 2015
by
Peter Fogg
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9061 from edx/peter-fogg/i18n-cleanup
Convert to named arguments for localized strings.
parents
09b352cc
4b0c3be7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
common/djangoapps/student/views.py
+2
-2
lms/djangoapps/teams/views.py
+12
-4
No files found.
common/djangoapps/student/views.py
View file @
454a0ada
...
...
@@ -663,8 +663,8 @@ def dashboard(request):
)
if
'notlive'
in
request
.
GET
:
redirect_message
=
_
(
"The course you are looking for does not start until {
0
}."
)
.
format
(
request
.
GET
[
'notlive'
]
redirect_message
=
_
(
"The course you are looking for does not start until {
date
}."
)
.
format
(
date
=
request
.
GET
[
'notlive'
]
)
else
:
redirect_message
=
''
...
...
lms/djangoapps/teams/views.py
View file @
454a0ada
...
...
@@ -313,8 +313,12 @@ class TeamsListView(ExpandableFieldViewMixin, GenericAPIView):
)
else
:
return
Response
({
'developer_message'
:
"unsupported order_by value {}"
.
format
(
order_by_input
),
'user_message'
:
_
(
u"The ordering {} is not supported"
)
.
format
(
order_by_input
),
'developer_message'
:
"unsupported order_by value {ordering}"
.
format
(
ordering
=
order_by_input
),
# Translators: 'ordering' is a string describing a way
# of ordering a list. For example, {ordering} may be
# 'name', indicating that the user wants to sort the
# list by lower case name.
'user_message'
:
_
(
u"The ordering {ordering} is not supported"
)
.
format
(
ordering
=
order_by_input
),
},
status
=
status
.
HTTP_400_BAD_REQUEST
)
queryset
=
queryset
.
order_by
(
order_by_field
)
...
...
@@ -557,8 +561,12 @@ class TopicListView(GenericAPIView):
topics
=
get_ordered_topics
(
course_module
,
ordering
)
else
:
return
Response
({
'developer_message'
:
"unsupported order_by value {}"
.
format
(
ordering
),
'user_message'
:
_
(
u"The ordering {} is not supported"
)
.
format
(
ordering
),
'developer_message'
:
"unsupported order_by value {ordering}"
.
format
(
ordering
=
ordering
),
# Translators: 'ordering' is a string describing a way
# of ordering a list. For example, {ordering} may be
# 'name', indicating that the user wants to sort the
# list by lower case name.
'user_message'
:
_
(
u"The ordering {ordering} is not supported"
)
.
format
(
ordering
=
ordering
),
},
status
=
status
.
HTTP_400_BAD_REQUEST
)
page
=
self
.
paginate_queryset
(
topics
)
...
...
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