diff --git a/public/language/en_GB/global.json b/public/language/en_GB/global.json index 7c8f002956..c8b647236c 100644 --- a/public/language/en_GB/global.json +++ b/public/language/en_GB/global.json @@ -79,5 +79,7 @@ "offline": "Offline", "email": "Email", - "language": "Language" + "language": "Language", + + "guest": "Guest" } diff --git a/public/language/en_GB/topic.json b/public/language/en_GB/topic.json index a53e56c9ef..d40c8ccb7b 100644 --- a/public/language/en_GB/topic.json +++ b/public/language/en_GB/topic.json @@ -102,5 +102,9 @@ "composer.thumb_file_label": "Or upload a file", "composer.thumb_remove": "Clear fields", "composer.drag_and_drop_images": "Drag and Drop Images Here", - "composer.upload_instructions": "Upload images by dragging & dropping them." + "composer.upload_instructions": "Upload images by dragging & dropping them.", + + "more_users_and_guests": "%1 more user(s) and %2 guest(s)", + "more_users": "%1 more user(s)", + "more_guests": "%1 more guest(s)" } diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 96f8db8134..3162f87f61 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -209,32 +209,38 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools', var title = ''; if(remainingUsers && anonymousCount) { - title = remainingUsers + ' more user(s) and ' + anonymousCount + ' guest(s)'; + title = '[[topic:more_users_and_guests, ' + remainingUsers + ', ' + anonymousCount + ']]'; } else if(remainingUsers) { - title = remainingUsers + ' more user(s)'; + title = '[[topic:more_users, ' + remainingUsers + ']]'; } else { - title = anonymousCount + ' guest(s)'; + title = '[[topic:more_guests, ' + anonymousCount + ']]'; } - anonLink.tooltip({ - placement: 'top', - title: title + translator.translate(title, function(translated) { + $('.anonymous-box').tooltip({ + placement: 'top', + title: translated + }); }); } - // Get users who are currently replying to the topic entered - socket.emit('modules.composer.getUsersByTid', ajaxify.variables.get('topic_id'), function(err, uids) { - if (uids && uids.length) { - for(var x=0;x