From cac428b30ccc2815264b15797e6397d6942b7adc Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Fri, 20 Mar 2015 16:09:21 +0800 Subject: Add some missing i18n tags --- js/thread-watcher.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/thread-watcher.js') 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('
' + '/'+e[0]+'/ - ' + - ''+e[1].replace("thread_", "Thread #")+'' + + ''+e[1].replace("thread_", _("Thread #"))+'' + ' ('+e[2]+') ' + 'X'+ '
'); @@ -44,8 +44,8 @@ watchlist.render = function(reset) { $('form[name="post"]').before( $('
'+ ''+ threads.join('')+ '
').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('[ watchlist ]'); + $('.boardlist').append('[ '+_('watchlist')+' ]'); //Append a watch thread button after every OP. - $('.op>.intro').append('[Watch Thread]'); + $('.op>.intro').append('['+_('Watch Thread')+']'); //Draw the watchlist, hidden. watchlist.render(); -- cgit v1.3