Problem/Motivation

Exactly 3 items for now

core/modules/locale/config/optional/tour.tour.locale.yml:16:    body: 'This page allows you to translate the user interface or modify existing translations. If you have installed your site initially in English, you must first add another language on the <a href="[site:url]/admin/config/regional/language">Languages page</a>, in order to use this page.'
core/includes/unicode.inc:39:      $requirements['unicode']['description'] = t('Multibyte string function overloading in PHP is active and must be disabled. Check the php.ini <em>mbstring.func_overload</em> setting. Please refer to the <a href=":url">PHP mbstring documentation</a> for more information.', $t_args);
git grep 'Now that you have an overview'
core/modules/language/config/optional/tour.tour.language-add.yml:28:    body: '<p>Now that you have an overview of the "Add languages" feature, you can continue by:<ul><li>Adding a language</li><li>Adding a custom language</li><li><a href="[site:url]/admin/config/regional/language">Viewing configured languages</a></li></ul></p>'
core/modules/language/config/optional/tour.tour.language-edit.yml:44:    body: '<p>Now that you have an overview of the "Edit language" feature, you can continue by:<ul><li>Editing a language</li><li><a href="[site:url]/admin/config/regional/language">Viewing configured languages</a></li></ul></p>'
core/modules/language/config/optional/tour.tour.language.yml:52:    body: '<p>Now that you have an overview of the "Languages" page, you can continue by:<ul><li><a href="[site:url]/admin/config/regional/language/add">Adding a language</a></li><li>Reordering languages</li><li>Editing a language</li><li>Deleting a language</li></ul></p>'

Proposed resolution

Find a way to pass allowed tags for tour and t()

Remaining tasks

User interface changes

API changes

Data model changes

Comments

andypost created an issue. See original summary.

andypost’s picture

Steps to reproduce:

1) add one more language and visit admin/config/regional/translate
2) Filter by "This page allows you to translate the user interface"
3) copy source string to translation and try import

expected - translation saved
actually - Отправленная строка содержит запрещенный HTML: This page allows you to translate the user interface or modify existing translations. If you have installed your site initially in English, you must first add another language on the <a href="[site:url]/admin/config/regional/language">Languages page</a>, in order to use this page.

caused by:

\Drupal\locale\Form\TranslateEditForm::validateForm()
        if (!locale_string_is_safe($value)) {
          $form_state->setErrorByName("strings][$lid][translations][$key", $this->t('The submitted string contains disallowed HTML: %string', array('%string' => $value)));
Gábor Hojtsy’s picture

Issue tags: -sprint

Yay, that one is closed now. Needs to be backported to D7 though if people can help :)