Skip to content

Commit d762c2f

Browse files
authored
[4.0] override truncate (#34701)
This PR truncates the display of very long language string overrides in the list of language overrides to a limit of 200 characters To test create an override for any string and add a long piece of text
1 parent fae8b9b commit d762c2f

File tree

1 file changed

+1
-1
lines changed
  • administrator/components/com_languages/tmpl/overrides

1 file changed

+1
-1
lines changed

administrator/components/com_languages/tmpl/overrides/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<?php endif; ?>
8484
</th>
8585
<td class="d-none d-md-table-cell">
86-
<span id="string[<?php echo $this->escape($key); ?>]"><?php echo $this->escape($text); ?></span>
86+
<span id="string[<?php echo $this->escape($key); ?>]"><?php echo HTMLHelper::_('string.truncate', $this->escape($text), 200); ?></span>
8787
</td>
8888
<td class="d-none d-md-table-cell">
8989
<?php echo $language; ?>

0 commit comments

Comments
 (0)