While I was testing ContentTranslationUITest, and I clicked verbose message t...

Contribution Date
Technology
Contribution Project
Contribution Details

While I was testing ContentTranslationUITest, and I clicked verbose message to check how translation edit page looks, and then I saw this:

Image removed.

Looks like the <em> tag has been hard-coded somewhere, because if % placeholder was used then there would be a class "placeholder" :(

+++ b/core/modules/node/src/NodeTranslationHandler.php @@ -68,7 +69,10 @@ public function entityFormAlter(array &$form, FormStateInterface $form_state, En - return t('<em>Edit @type</em> @title', array('@type' => $type_name, '@title' => $entity->label())); + return String::format('%edit @title', array( + '%edit' => t('Edit @type', array('@type' => $type_name)), + '@title' => $entity->label(), + ));

Same issue as this one

Contribution Author
Files count
1
Patches count
0