toggle-images.js: javascript i18n

This commit is contained in:
czaks 2013-07-27 01:16:12 -04:00
parent d09ef22154
commit 3e5234e54e

View File

@ -38,7 +38,7 @@ $(document).ready(function(){
if ($(this).next().hasClass('show-image-link')) { if ($(this).next().hasClass('show-image-link')) {
$(this).next().hide(); $(this).next().hide();
} }
$(this).hide().after('<span class="toggle-images-placeholder">hidden</span>'); $(this).hide().after('<span class="toggle-images-placeholder">'+_('hidden')+'</span>');
}); });
} else { } else {
$('span.toggle-images-placeholder').remove(); $('span.toggle-images-placeholder').remove();
@ -54,7 +54,7 @@ $(document).ready(function(){
$('hr:first').before('<div id="toggle-images" style="text-align:right"><a class="unimportant" href="javascript:void(0)">-</a></div>'); $('hr:first').before('<div id="toggle-images" style="text-align:right"><a class="unimportant" href="javascript:void(0)">-</a></div>');
$('div#toggle-images a') $('div#toggle-images a')
.text((hide_images ? 'Show' : 'Hide') + ' images') .text(hide_images ? _('Show images') : _('Hide images'))
.click(function() { .click(function() {
hide_images = !hide_images; hide_images = !hide_images;
if (hide_images) { if (hide_images) {
@ -67,7 +67,7 @@ $(document).ready(function(){
show_hide_hide_images_buttons(); show_hide_hide_images_buttons();
$(this).text((hide_images ? 'Show' : 'Hide') + ' images') $(this).text(hide_images ? _('Show images') : _('Hide images'))
}); });
if (hide_images) { if (hide_images) {