diff --git a/core/modules/help_topics/help_topics/user.security_account_settings.html.twig b/core/modules/help_topics/help_topics/user.security_account_settings.html.twig index 5e21da7024..f86098d986 100644 --- a/core/modules/help_topics/help_topics/user.security_account_settings.html.twig +++ b/core/modules/help_topics/help_topics/user.security_account_settings.html.twig @@ -13,24 +13,15 @@ related:
{% trans %}Variables are short text strings, enclosed in square brackets [], that you can insert into configured email message text. When an individual message is generated, data from your site is substituted for the variables. Some commonly-used variables are:{% endtrans %}
-{# ALLOW-UNTRANSLATED #} -{% trans %}This is a test. It should link to the additional topic. Also there should be a related topic link below to the Help module topic page and the linked topic.{% endtrans %}
{% trans %}Nonworditem totranslate.{% endtrans %}
{% trans %}Test translation.{% endtrans %}
-{# ALLOW-UNTRANSLATED #} -Untranslated text that is allowed.
-{# END-ALLOW-UNTRANSLATED #} diff --git a/core/modules/help_topics/tests/src/Functional/HelpTopicsSyntaxTest.php b/core/modules/help_topics/tests/src/Functional/HelpTopicsSyntaxTest.php index 9701a1bdfc..c2f3b016a7 100644 --- a/core/modules/help_topics/tests/src/Functional/HelpTopicsSyntaxTest.php +++ b/core/modules/help_topics/tests/src/Functional/HelpTopicsSyntaxTest.php @@ -128,14 +128,9 @@ protected function verifyTopic($id, $definitions, $response = 200) { $body = trim($body); $this->assertNotEmpty($body, 'Topic ' . $id . ' Twig file contains some text outside of front matter'); - // Verify that if we remove all the translated text, whitespace, comments, - // and HTML tags, there is nothing left (that is, all text is translated). - // Also allow sections bracketed by - // {# ALLOW-UNTRANSLATED #}...{# END-ALLOW-UNTRANSLATED #} - // to be untranslated. + // Verify that if we remove all the translated text, whitespace, and + // HTML tags, there is nothing left (that is, all text is translated). $text = preg_replace('|\{\% trans \%\}.*\{\% endtrans \%\}|sU', '', $body); - $text = preg_replace('|\{\# ALLOW-UNTRANSLATED \#\}.*\{\# END-ALLOW-UNTRANSLATED \#\}|sU', '', $text); - $text = preg_replace('|\{# .* #\}|sU', '', $text); $text = strip_tags($text); $text = preg_replace('|\s+|', '', $text); $this->assertEmpty($text, 'Topic ' . $id . ' Twig file has all of its text translated');