Skip to content

Commit 87bc3a1

Browse files
committed
Update lang strings #47
1 parent d6d322c commit 87bc3a1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

filter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private function process_img_tag(array $match) {
200200

201201
$imageinfo = (object) $file->get_imageinfo();
202202
if ($imageinfo->width <= $maxwidth && !local::file_is_public($file->get_contenthash())) {
203-
if (empty($this->config->lovsmallimage) || $this->config->loadonvisible == 999) {
203+
if (empty($this->config->lovallimage) || $this->config->loadonvisible == 999) {
204204
return $match[0];
205205
} else {
206206
// Apply load on visible.

lang/en/filter_imageopt.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
$string['donotloadonvisible'] = 'No placeholding, load immediately';
3030
$string['loadonvisibilityall'] = 'All images';
3131
$string['loadonvisibilityafter'] = 'After {$a} image(s)';
32-
$string['lovsmallimage'] = 'Load when visible for small images';
33-
$string['lovsmallimagedesc'] = 'Apply "Load when visible" for images which are smaller than "Maximum image width"';
32+
$string['lovallimage'] = 'Load when visible for all images';
33+
$string['lovallimagedesc'] = 'Apply "Load when visible" to all images, regardless of size';
3434
$string['widthattribute'] = 'Image width attribute';
3535
$string['widthattributedesc'] = 'How should existing image width attributes be dealt with';
3636
$string['widthattpreserve'] = 'Preserve user width attributes in all cases';

settings.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
get_string('loadonvisibledesc', 'filter_imageopt'), 5, $choices));
5050

5151
$settings->add(new admin_setting_configcheckbox(
52-
'filter_imageopt/lovsmallimage',
53-
get_string('lovsmallimage', 'filter_imageopt'),
54-
get_string('lovsmallimagedesc', 'filter_imageopt'),
52+
'filter_imageopt/lovallimage',
53+
get_string('lovallimage', 'filter_imageopt'),
54+
get_string('lovallimagedesc', 'filter_imageopt'),
5555
0
5656
));
5757

0 commit comments

Comments
 (0)