diff --git a/js/toggle-images.js b/js/toggle-images.js index 74f2fab4..de1d47b3 100644 --- a/js/toggle-images.js +++ b/js/toggle-images.js @@ -38,7 +38,7 @@ $(document).ready(function(){ if ($(this).next().hasClass('show-image-link')) { $(this).next().hide(); } - $(this).hide().after('hidden'); + $(this).hide().after(''+_('hidden')+''); }); } else { $('span.toggle-images-placeholder').remove(); @@ -54,7 +54,7 @@ $(document).ready(function(){ $('hr:first').before('
-
'); $('div#toggle-images a') - .text((hide_images ? 'Show' : 'Hide') + ' images') + .text(hide_images ? _('Show images') : _('Hide images')) .click(function() { hide_images = !hide_images; if (hide_images) { @@ -67,7 +67,7 @@ $(document).ready(function(){ show_hide_hide_images_buttons(); - $(this).text((hide_images ? 'Show' : 'Hide') + ' images') + $(this).text(hide_images ? _('Show images') : _('Hide images')) }); if (hide_images) {