toggle-images.js: javascript i18n
This commit is contained in:
parent
94468c430c
commit
38cc2d77f8
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user