Skip to content
Snippets Groups Projects
Commit 980fdefa authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #1790612 by carwin: Do not concatenate variables into translatable strings.

parent b9b35965
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -244,7 +244,9 @@ function text_field_formatter_settings_summary($field, $instance, $view_mode) {
$summary = '';
if (strpos($display['type'], '_trimmed') !== FALSE) {
$summary = t('Trim length') . ': ' . $settings['trim_length'];
$summary = t('Trim length: @trim_length', array(
'@trim_length' => $settings['trim_length'],
));
}
return $summary;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment