mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
fixed translation on recent replies feed
This commit is contained in:
@@ -192,16 +192,18 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
'<strong><span>'+ posts[i].username + '</span></strong>' +
|
'<strong><span>'+ posts[i].username + '</span></strong>' +
|
||||||
'<p>' + posts[i].content + '</p>' +
|
'<p>' + posts[i].content + '</p>' +
|
||||||
'<span class="pull-right">'+
|
'<span class="pull-right">'+
|
||||||
'<a href="' + RELATIVE_PATH + '/topic/' + posts[i].topicSlug + '#' + posts[i].pid + '">posted</a> '+
|
'<a href="' + RELATIVE_PATH + '/topic/' + posts[i].topicSlug + '#' + posts[i].pid + '">[[category:posted]]</a> '+
|
||||||
'<span class="timeago" title="' + posts[i].relativeTime + '"></span>' +
|
'<span class="timeago" title="' + posts[i].relativeTime + '"></span>' +
|
||||||
'</span>'+
|
'</span>'+
|
||||||
'</li>';
|
'</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
recentReplies.html(replies);
|
translator.translate(replies, function(translatedHTML) {
|
||||||
|
recentReplies.html(translatedHTML);
|
||||||
|
|
||||||
$('#category_recent_replies span.timeago').timeago();
|
$('#category_recent_replies span.timeago').timeago();
|
||||||
app.createUserTooltips();
|
app.createUserTooltips();
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return Category;
|
return Category;
|
||||||
|
|||||||
Reference in New Issue
Block a user