Commit d35a56bc by Jim Abramson

Merge pull request #2189 from edx/feature/jsa/forums-i18n-underscore

i18n: extract strings from underscore templates
parents e6345868 168445f7
......@@ -174,6 +174,14 @@ if Backbone?
content.addClass("resolved")
if thread.get('read')
content.addClass("read")
if thread.get('unread_comments_count') > 0
content.find('.comments-count').addClass("unread").attr(
"data-tooltip",
interpolate(
ngettext('%(unread_count)s new comment', '%(unread_count)s new comments', {'unread_count': thread.get('unread_comments_count')}),
[thread.get('unread_comments_count')]
)
)
@highlight(content)
......@@ -473,4 +481,4 @@ if Backbone?
error: () =>
$('input.email-setting').attr('checked','checked')
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