Skip to content
Snippets Groups Projects
Commit cd37e6b9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2569295 by geertvd, lauriii: Replace remaining !placeholder for Non-URL...

Issue #2569295 by geertvd, lauriii: Replace remaining !placeholder for Non-URL HTML outputs only in #title lines
parent d85ee2ed
Branches
Tags
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
......@@ -100,9 +100,9 @@ protected function getSourceElement(LanguageInterface $source_language, $source_
return array(
'#type' => 'item',
'#title' => $this->t('@label <span class="visually-hidden">(!source_language)</span>', array(
'#title' => $this->t('@label <span class="visually-hidden">(@source_language)</span>', array(
'@label' => $this->definition->getLabel(),
'!source_language' => $source_language->getName(),
'@source_language' => $source_language->getName(),
)),
'#markup' => $value,
);
......@@ -162,9 +162,9 @@ protected function getSourceElement(LanguageInterface $source_language, $source_
protected function getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) {
// Add basic properties that apply to all form elements.
return array(
'#title' => $this->t('@label <span class="visually-hidden">(!source_language)</span>', array(
'#title' => $this->t('@label <span class="visually-hidden">(@source_language)</span>', array(
'@label' => $this->definition['label'],
'!source_language' => $translation_language->getName(),
'@source_language' => $translation_language->getName(),
)),
'#default_value' => $translation_config,
'#attributes' => array('lang' => $translation_language->getId()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment