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
e75f2733
Commit
e75f2733
authored
May 09, 2014
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply Sarina's code review suggestions
parent
6d08a0b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cms/static/js/views/paging_header.js
+3
-2
No files found.
cms/static/js/views/paging_header.js
View file @
e75f2733
...
@@ -33,10 +33,10 @@ define(["underscore", "gettext", "js/views/baseview"], function(_, gettext, Base
...
@@ -33,10 +33,10 @@ define(["underscore", "gettext", "js/views/baseview"], function(_, gettext, Base
messageHtml
:
function
()
{
messageHtml
:
function
()
{
var
message
;
var
message
;
if
(
this
.
view
.
collection
.
sortDirection
===
'asc'
)
{
if
(
this
.
view
.
collection
.
sortDirection
===
'asc'
)
{
// Translators: sample result: "Showing 0-9 out of 25
, sorted by name
ascending"
// Translators: sample result: "Showing 0-9 out of 25
total, sorted by Date Added
ascending"
message
=
gettext
(
'Showing %(current_item_range)s out of %(total_items_count)s, sorted by %(sort_name)s ascending'
);
message
=
gettext
(
'Showing %(current_item_range)s out of %(total_items_count)s, sorted by %(sort_name)s ascending'
);
}
else
{
}
else
{
// Translators: sample result: "Showing 0-9 out of 25
, sorted by name
descending"
// Translators: sample result: "Showing 0-9 out of 25
total, sorted by Date Added
descending"
message
=
gettext
(
'Showing %(current_item_range)s out of %(total_items_count)s, sorted by %(sort_name)s descending'
);
message
=
gettext
(
'Showing %(current_item_range)s out of %(total_items_count)s, sorted by %(sort_name)s descending'
);
}
}
return
'<p>'
+
interpolate
(
message
,
{
return
'<p>'
+
interpolate
(
message
,
{
...
@@ -60,6 +60,7 @@ define(["underscore", "gettext", "js/views/baseview"], function(_, gettext, Base
...
@@ -60,6 +60,7 @@ define(["underscore", "gettext", "js/views/baseview"], function(_, gettext, Base
totalItemsCountLabel
:
function
()
{
totalItemsCountLabel
:
function
()
{
var
totalItemsLabel
;
var
totalItemsLabel
;
// Translators: turns into "25 total" to be used in other sentences, e.g. "Showing 0-9 out of 25 total".
totalItemsLabel
=
interpolate
(
gettext
(
'%(total_items)s total'
),
{
totalItemsLabel
=
interpolate
(
gettext
(
'%(total_items)s total'
),
{
total_items
:
this
.
view
.
collection
.
totalCount
total_items
:
this
.
view
.
collection
.
totalCount
},
true
);
},
true
);
...
...
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