diff --git a/core/modules/locale/src/Form/TranslateEditForm.php b/core/modules/locale/src/Form/TranslateEditForm.php index f8e9938..d953dce 100644 --- a/core/modules/locale/src/Form/TranslateEditForm.php +++ b/core/modules/locale/src/Form/TranslateEditForm.php @@ -132,7 +132,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { } if ($plurals == 2) { // Simplify user interface text for the most common case. - $form['strings'][$string->lid]['translations'][1]['title'] = $this->t('Plural form'); + $form['strings'][$string->lid]['translations'][1]['#title'] = $this->t('Plural form'); } } } diff --git a/core/modules/views/src/Plugin/views/field/NumericField.php b/core/modules/views/src/Plugin/views/field/NumericField.php index dbf02d9..2034035 100644 --- a/core/modules/views/src/Plugin/views/field/NumericField.php +++ b/core/modules/views/src/Plugin/views/field/NumericField.php @@ -114,9 +114,9 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { } if ($plurals == 2) { // Simplify user interface text for the most common case. - $form['format_plural_values'][0]['description'] = $this->t('Text to use for the singular form, @count will be replaced with the value.'); - $form['format_plural_values'][1]['title'] = $this->t('Plural form'); - $form['format_plural_values'][1]['description'] = $this->t('Text to use for the plural form, @count will be replaced with the value.'); + $form['format_plural_values'][0]['#description'] = $this->t('Text to use for the singular form, @count will be replaced with the value.'); + $form['format_plural_values'][1]['#title'] = $this->t('Plural form'); + $form['format_plural_values'][1]['#description'] = $this->t('Text to use for the plural form, @count will be replaced with the value.'); } $form['prefix'] = array(