diff options
| author | czaks <marcin@6irc.net> | 2013-07-03 01:17:56 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-03 01:17:56 -0400 |
| commit | 37c1b134dea3dc54cee8f9fe07b713ee98ca993b (patch) | |
| tree | 794ee948515039273f51c46921ceccec48b3d6d8 /js/expand.js | |
| parent | da9f367f2f9cf24d47b8d6a04cf2e54cb14a03bc (diff) | |
js i18n: expand.js
Diffstat (limited to 'js/expand.js')
| -rw-r--r-- | js/expand.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/expand.js b/js/expand.js index d78cea9a..0e3537a8 100644 --- a/js/expand.js +++ b/js/expand.js @@ -1,5 +1,5 @@ /* - *expand.js + * expand.js * https://github.com/savetheinternet/Tinyboard/blob/master/js/expand.js * * Released under the MIT license @@ -17,7 +17,7 @@ $(document).ready(function(){ $('div.post.op span.omitted').each(function() { $(this) - .html($(this).text().replace(/Click reply to view\./, '<a href="javascript:void(0)">Click to expand</a>.')) + .html($(this).text().replace(_("Click reply to view."), '<a href="javascript:void(0)">'+_("Click to expand")+'</a>.')) .find('a').click(function() { var thread = $(this).parent().parent().parent(); var id = thread.attr('id').replace(/^thread_/, ''); @@ -38,7 +38,7 @@ $(document).ready(function(){ $(document).trigger('new_post', this); } }); - $('<span class="omitted"><a href="javascript:void(0)">Hide expanded replies</a>.</span>') + $('<span class="omitted"><a href="javascript:void(0)">' + _('Hide expanded replies') + '</a>.</span>') .insertAfter(thread.find('span.omitted').css('display', 'none')) .click(function() { thread.find('.expanded').remove(); |
