Incorrect translatable string in FileTransferAuthorizeForm

Created on 28 July 2023, almost 2 years ago

This causes "String import failed" error when importing translations.

$form_state->setErrorByName('connection_settings', $this->t('Failed to connect to the server. The server reports the following message: <p class="error">@message</p> For more help adding or updating code on your server, see the <a href=":handbook_url">handbook</a>.', [
  '@message' => $e->getMessage(),
  ':handbook_url' => 'https://www.drupal.org/docs/extending-drupal/overview',
]));

Seems like locale_string_is_safe()<code> does not allow <code>p tag in translatable strings.

๐Ÿ› Bug report
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
Otherย  โ†’

Last updated about 24 hours ago

Created by

๐Ÿ‡ท๐Ÿ‡บRussia Chi

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024