diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.js index b405a8bcee..ab1383fbd0 100644 --- a/public/src/client/topic/threadTools.js +++ b/public/src/client/topic/threadTools.js @@ -259,6 +259,17 @@ define('forum/topic/threadTools', [ }; function setFollowState(state) { + var titles = { + follow: '[[topic:watching]]', + unfollow: '[[topic:not-watching]]', + ignore: '[[topic:ignoring]]', + }; + translator.translate(titles[state], function (translatedTitle) { + $('[component="topic/watch"] button') + .attr('title', translatedTitle) + .tooltip('fixTitle'); + }); + var menu = components.get('topic/following/menu'); menu.toggleClass('hidden', state !== 'follow'); components.get('topic/following/check').toggleClass('fa-check', state === 'follow');