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
b0e6242d
Commit
b0e6242d
authored
Apr 13, 2017
by
Omar Al-Ithawi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translate discussion in `discussion posted 1s ago by X`
parent
be5c4fad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
common/static/common/templates/discussion/thread-show.underscore
+10
-9
No files found.
common/static/common/templates/discussion/thread-show.underscore
View file @
b0e6242d
...
@@ -25,16 +25,17 @@
...
@@ -25,16 +25,17 @@
{created_at: created_at},
{created_at: created_at},
true
true
);
);
var postedTimeAgoMessage;
// Using a separate message to ensure proper translation for different languages
// thread_type describes the kind of post this is (e.g. "question" or "discussion");
// time_ago is how much time has passed since the post was created (e.g. "4 hours ago")
if (thread_type === 'discussion') {
postedTimeAgoMessage = gettext('discussion posted %(time_ago)s by %(author)s');
} else {
postedTimeAgoMessage = gettext('question posted %(time_ago)s by %(author)s');
}
%>
%>
<%=
<%= interpolate(_.escape(postedTimeAgoMessage), {time_ago: timeAgoHtml, author: author_display}, true) %>
interpolate(
// Translators: post_type describes the kind of post this is (e.g. "question" or "discussion");
// time_ago is how much time has passed since the post was created (e.g. "4 hours ago")
_.escape(gettext('%(post_type)s posted %(time_ago)s by %(author)s')),
{post_type: thread_type, time_ago: timeAgoHtml, author: author_display},
true
)
%>
</p>
</p>
<div class="post-labels">
<div class="post-labels">
<span class="post-label post-label-pinned">
<span class="post-label post-label-pinned">
...
...
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