diff options
Diffstat (limited to 'js/thread-watcher.js')
| -rw-r--r-- | js/thread-watcher.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/thread-watcher.js b/js/thread-watcher.js index 7f20e028..960aa59f 100644 --- a/js/thread-watcher.js +++ b/js/thread-watcher.js @@ -29,7 +29,7 @@ watchlist.render = function(reset) { //look at line 69, that's what (e) is here. threads.push('<div class="watchlist-inner" id="watchlist-'+i+'">' + '<span>/'+e[0]+'/ - ' + - '<a href="'+e[3]+'">'+e[1].replace("thread_", "Thread #")+'</a>' + + '<a href="'+e[3]+'">'+e[1].replace("thread_", _("Thread #"))+'</a>' + ' ('+e[2]+') </span>' + '<a class="watchlist-remove">X</a>'+ '</div>'); @@ -44,8 +44,8 @@ watchlist.render = function(reset) { $('form[name="post"]').before( $('<div id="watchlist">'+ '<div class="watchlist-controls">'+ - '<span><a id="clearList">[Clear List]</a></span> '+ - '<span><a id="clearGhosts">[Clear Ghosts]</a></span>'+ + '<span><a id="clearList">['+_('Clear List')+']</a></span> '+ + '<span><a id="clearGhosts">['+_('Clear Ghosts')+']</a></span>'+ '</div>'+ threads.join('')+ '</div>').css("background-color", menuStyle.backgroundColor).css("border", menuStyle.borderBottomWidth+" "+menuStyle.borderBottomStyle+" "+menuStyle.borderBottomColor)); @@ -80,7 +80,7 @@ watchlist.add = function(sel) { postCount = $(sel).parents('.op').siblings('.post').length+1; } //Grab the reply link. - var threadLink = $(sel).siblings('a:contains("[Reply]")').attr('href'); + var threadLink = $(sel).siblings('a:contains("['+_('Reply')+']")').attr('href'); //Figure out the thread name. If anon, use the thread id. if ($(sel).parent().find('.subject').length) { threadName = $(sel).parent().find('.subject').text().substring(0,20); @@ -147,9 +147,9 @@ $(document).ready(function(){ } //Append the watchlist toggle button. - $('.boardlist').append('<span>[ <a class="watchlist-toggle" href="#">watchlist</a> ]</span>'); + $('.boardlist').append('<span>[ <a class="watchlist-toggle" href="#">'+_('watchlist')+'</a> ]</span>'); //Append a watch thread button after every OP. - $('.op>.intro').append('<a class="watchThread" href="#">[Watch Thread]</a>'); + $('.op>.intro').append('<a class="watchThread" href="#">['+_('Watch Thread')+']</a>'); //Draw the watchlist, hidden. watchlist.render(); |
