Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 7e91b64

Browse files
committed
Adjust the template hint (see #7369)
1 parent 11b6b0f commit 7e91b64

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

.tx/config

+10
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@ source_file = system/modules/core/languages/en/tl_form_field.xlf
122122
source_lang = en
123123
file_filter = system/modules/core/languages/<lang>/tl_form_field.xlf
124124

125+
[contao.v3_4-core-tl_image_size]
126+
source_file = system/modules/core/languages/en/tl_image_size.xlf
127+
source_lang = en
128+
file_filter = system/modules/core/languages/<lang>/tl_image_size.xlf
129+
130+
[contao.v3_4-core-tl_image_size_item]
131+
source_file = system/modules/core/languages/en/tl_image_size_item.xlf
132+
source_lang = en
133+
file_filter = system/modules/core/languages/<lang>/tl_image_size_item.xlf
134+
125135
[contao.v3_4-core-tl_install]
126136
source_file = system/modules/core/languages/en/tl_install.xlf
127137
source_lang = en

system/modules/core/dca/tl_image_size.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,8 @@ public function listImageSize($row)
262262

263263
/**
264264
* Show a hint if a JavaScript library needs to be included in the page layout
265-
* @param object
266265
*/
267-
public function showJsLibraryHint($dc)
266+
public function showJsLibraryHint()
268267
{
269268
if ($_POST || Input::get('act') != 'edit')
270269
{
@@ -278,7 +277,7 @@ public function showJsLibraryHint($dc)
278277
}
279278

280279
System::loadLanguageFile('tl_layout');
281-
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], $GLOBALS['TL_LANG']['tl_layout']['addPicturefill'][0]));
280+
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], 'picturefill.js', 'respimage.js'));
282281
}
283282

284283

system/modules/core/dca/tl_image_size_item.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,8 @@ public function listImageSizeItem($row)
277277

278278
/**
279279
* Show a hint if a JavaScript library needs to be included in the page layout
280-
* @param object
281280
*/
282-
public function showJsLibraryHint($dc)
281+
public function showJsLibraryHint()
283282
{
284283
if ($_POST || Input::get('act') != 'edit')
285284
{
@@ -293,7 +292,7 @@ public function showJsLibraryHint($dc)
293292
}
294293

295294
System::loadLanguageFile('tl_layout');
296-
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], $GLOBALS['TL_LANG']['tl_layout']['addPicturefill'][0]));
295+
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], 'picturefill.js', 'respimage.js'));
297296
}
298297

299298

system/modules/core/languages/en/tl_image_size.xlf

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<source>Delete image size ID %s</source>
100100
</trans-unit>
101101
<trans-unit id="tl_image_size.picturefill">
102-
<source>The &lt;em&gt;%s&lt;/em&gt; option needs to be enabled in the page layout.</source>
102+
<source>The &lt;em&gt;%s&lt;/em&gt; or &lt;em&gt;%s&lt;/em&gt; polyfill needs to be enabled in the page layout.</source>
103103
</trans-unit>
104104
</body>
105105
</file>

0 commit comments

Comments
 (0)