diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index e0c9bea10b3848f7fc3ed6bba277c113c78d82b6..401054a87dff689eb09ea511988033ca2ddebe27 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -31,8 +31,6 @@ andif annot anonyme anothermodule -anotherwordenglish -anotherwordgerman antilop anyall applix @@ -49,7 +47,6 @@ arrowstop arrowthick arrowthickstop arrr -asdrsad assertable asterix atomentry @@ -97,7 +94,6 @@ bangpow barbar barchart barfoo -barmm barqux bartik bartik's @@ -515,7 +511,6 @@ foobarbaz foobargorilla foobars foofoo -foomm foos formatless formattable @@ -586,7 +581,6 @@ heure heures hidpi hijklmn -hilfetestmodul hilited hinode hippopotamidae @@ -913,15 +907,11 @@ nonconfigurable nonexistingfilename nonoptional nonspacing -nonwordgerman -nonworditem noquotes noschema nosniff nostart notag -notawordenglish -notawordgerman notexisting nothere notnull @@ -1191,7 +1181,6 @@ scorewords screenreaders scriptable scrollbars -sdeeeee searchdirs searchfield sebe @@ -1250,7 +1239,6 @@ splitbuttons spreadsheetml sqlpassword sqlusername -sqruct squaresmall squiz squizlabs @@ -1608,7 +1596,6 @@ vxezb vxfbk waitfor wcprops -wcsrefsdf webassert webcal webdriver @@ -1693,5 +1680,4 @@ zzgroup Ã¥wesome èxample über -übersetzung È…chÈ diff --git a/core/modules/help_topics/tests/modules/help_topics_test/help_topics/help_topics_test.test.html.twig b/core/modules/help_topics/tests/modules/help_topics_test/help_topics/help_topics_test.test.html.twig index 1b3d12dcdef75821454dfb194c4e2e1c7ff0dfe4..baa28f2c77c9c0368c9e9e18d8423cf847243685 100644 --- a/core/modules/help_topics/tests/modules/help_topics_test/help_topics/help_topics_test.test.html.twig +++ b/core/modules/help_topics/tests/modules/help_topics_test/help_topics/help_topics_test.test.html.twig @@ -7,5 +7,5 @@ related: --- {% set help_topic_link = render_var(help_topic_link('help_topics_test.test_urls')) %} <p>{% trans %}This is a test. It should link to the URL test topic {{ help_topic_link }}. Also there should be a related topic link below to the Help module topic page and the linked topic.{% endtrans %}</p> -<p>{% trans %}Nonworditem totranslate.{% endtrans %}</p> +<p>{% trans %}Non-word-item to translate.{% endtrans %}</p> <p>{% trans %}Test translation.{% endtrans %}</p> diff --git a/core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php b/core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php index f4d2a741e0ee351ce09f59212cdab416d0d177ef..2dc366bc9e98078ed26b93cce756629fa0e57620 100644 --- a/core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php +++ b/core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php @@ -8,6 +8,8 @@ use Drupal\Core\Link; use Drupal\help\Plugin\HelpSection\HelpSectionPluginBase; +// cspell:ignore asdrsad barmm foomm sqruct wcsrefsdf sdeeeee + /** * Provides a searchable help section for testing. * @@ -47,13 +49,13 @@ public function renderTopicForSearch($topic_id, LanguageInterface $language) { if ($language->getId() == 'en') { return [ 'title' => 'Foo in English title wcsrefsdf', - 'text' => 'Something about foo body notawordenglish sqruct', + 'text' => 'Something about foo body not-a-word-english sqruct', 'url' => Url::fromUri('https://foo.com'), ]; } return [ 'title' => 'Foomm Foreign heading', - 'text' => 'Fake foreign foo text notawordgerman asdrsad', + 'text' => 'Fake foreign foo text not-a-word-german asdrsad', 'url' => Url::fromUri('https://mm.foo.com'), ]; @@ -61,13 +63,13 @@ public function renderTopicForSearch($topic_id, LanguageInterface $language) { if ($language->getId() == 'en') { return [ 'title' => 'Bar in English', - 'text' => 'Something about bar anotherwordenglish asdrsad', + 'text' => 'Something about bar another-word-english asdrsad', 'url' => Url::fromUri('https://bar.com'), ]; } return [ 'title' => \Drupal::state()->get('help_topics_test:translated_title', 'Barmm Foreign sdeeeee'), - 'text' => 'Fake foreign barmm anotherwordgerman sqruct', + 'text' => 'Fake foreign barmm another-word-german sqruct', 'url' => Url::fromUri('https://mm.bar.com'), ]; diff --git a/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php b/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php index 83a0c875c51d2d6b7019e92e6f0ca36e5aa7a28b..013841aa10d2f16d0a4f53191b79d4ae6f04b1ff 100644 --- a/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php +++ b/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php @@ -5,6 +5,9 @@ use Drupal\Tests\Traits\Core\CronRunTrait; use Drupal\help_topics\Plugin\Search\HelpSearch; +// cspell:ignore asdrsad barmm foomm hilfetestmodul sdeeeee sqruct +// cspell:ignore wcsrefsdf übersetzung + /** * Verifies help topic search. * @@ -63,7 +66,7 @@ protected function setUp(): void { // Before running cron, verify that a search returns no results and shows // warning. $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'notawordenglish'], 'Search'); + $this->submitForm(['keys' => 'not-a-word-english'], 'Search'); $this->assertSearchResultsCount(0); $this->assertSession()->statusMessageContains('Help search is not fully indexed', 'warning'); @@ -83,7 +86,7 @@ protected function setUp(): void { $this->assertSession()->pageTextContains('100% of the site has been indexed'); // Search and verify there is no warning. $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'notawordenglish'], 'Search'); + $this->submitForm(['keys' => 'not-a-word-english'], 'Search'); $this->assertSearchResultsCount(1); $this->assertSession()->statusMessageNotContains('Help search is not fully indexed'); } @@ -100,26 +103,26 @@ public function testHelpSearch() { // by the topics that come from // \Drupal\help_topics_test\Plugin\HelpSection\TestHelpSection. $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'notawordenglish'], 'Search'); + $this->submitForm(['keys' => 'not-a-word-english'], 'Search'); $this->assertSearchResultsCount(1); $session->linkExists('Foo in English title wcsrefsdf'); // Same for German. $this->drupalGet('search/help', ['language' => $german]); - $this->submitForm(['keys' => 'notawordgerman'], 'Search'); + $this->submitForm(['keys' => 'not-a-word-german'], 'Search'); $this->assertSearchResultsCount(1); $session->linkExists('Foomm Foreign heading'); // Verify when we search in English for a word that only exists in German, // we get no results. $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'notawordgerman'], 'Search'); + $this->submitForm(['keys' => 'not-a-word-german'], 'Search'); $this->assertSearchResultsCount(0); $session->pageTextContains('no results'); // Same for German. $this->drupalGet('search/help', ['language' => $german]); - $this->submitForm(['keys' => 'notawordenglish'], 'Search'); + $this->submitForm(['keys' => 'not-a-word-english'], 'Search'); $this->assertSearchResultsCount(0); $session->pageTextContains('no results'); @@ -141,7 +144,7 @@ public function testHelpSearch() { // that we can search for translated regular help topics, in both English // and German. $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'nonworditem'], 'Search'); + $this->submitForm(['keys' => 'non-word-item'], 'Search'); $this->assertSearchResultsCount(1); $session->linkExists('ABC Help Test module'); // Click the link and verify we ended up on the topic page. @@ -149,7 +152,7 @@ public function testHelpSearch() { $session->pageTextContains('This is a test'); $this->drupalGet('search/help', ['language' => $german]); - $this->submitForm(['keys' => 'nonwordgerman'], 'Search'); + $this->submitForm(['keys' => 'non-word-german'], 'Search'); $this->assertSearchResultsCount(1); $session->linkExists('ABC-Hilfetestmodul'); $this->clickLink('ABC-Hilfetestmodul'); @@ -158,13 +161,13 @@ public function testHelpSearch() { // Verify that we can search from the admin/help page. $this->drupalGet('admin/help'); $session->pageTextContains('Search help'); - $this->submitForm(['keys' => 'nonworditem'], 'Search'); + $this->submitForm(['keys' => 'non-word-item'], 'Search'); $this->assertSearchResultsCount(1); $session->linkExists('ABC Help Test module'); // Same for German. $this->drupalGet('admin/help', ['language' => $german]); - $this->submitForm(['keys' => 'nonwordgerman'], 'Search'); + $this->submitForm(['keys' => 'non-word-german'], 'Search'); $this->assertSearchResultsCount(1); $session->linkExists('ABC-Hilfetestmodul'); @@ -228,12 +231,12 @@ public function testHelpSearch() { $session->pageTextContains('Search help'); $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'nonworditem'], 'Search'); + $this->submitForm(['keys' => 'non-word-item'], 'Search'); $this->assertSearchResultsCount(1); $session->linkExists('ABC Help Test module'); $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'notawordenglish'], 'Search'); + $this->submitForm(['keys' => 'not-a-word-english'], 'Search'); $this->assertSearchResultsCount(0); $session->pageTextContains('no results'); @@ -241,7 +244,7 @@ public function testHelpSearch() { // searchable. \Drupal::service('module_installer')->uninstall(['help_topics_test']); $this->drupalGet('search/help'); - $this->submitForm(['keys' => 'nonworditem'], 'Search'); + $this->submitForm(['keys' => 'non-word-item'], 'Search'); $this->assertSearchResultsCount(0); } diff --git a/core/modules/help_topics/tests/src/Functional/HelpTopicTranslatedTestBase.php b/core/modules/help_topics/tests/src/Functional/HelpTopicTranslatedTestBase.php index c2f1158aa543f5e7de4b331a01cb2fb6b1c40f7b..ec5ffce50fcd90831113eddf82176d65f70bd7f8 100644 --- a/core/modules/help_topics/tests/src/Functional/HelpTopicTranslatedTestBase.php +++ b/core/modules/help_topics/tests/src/Functional/HelpTopicTranslatedTestBase.php @@ -4,6 +4,8 @@ use Drupal\Tests\BrowserTestBase; +// cspell:ignore hilfetestmodul übersetzung + /** * Provides a base class for functional help topic tests that use translation. * @@ -73,8 +75,8 @@ protected function installParameters() { msgid "Test translation." msgstr "Übersetzung testen." -msgid "Nonworditem totranslate." -msgstr "Nonwordgerman sdfwedrsdf." +msgid "Non-word-item to translate." +msgstr "Non-word-german sdfwedrsdf." ENDPO; include_once $this->root . '/core/includes/install.core.inc'; diff --git a/core/modules/help_topics/tests/src/Functional/HelpTopicTranslationTest.php b/core/modules/help_topics/tests/src/Functional/HelpTopicTranslationTest.php index 86e45d7a3a4498b0e04b94c2197afb6dd2256524..261fcb0ba2411083c291466ac094c14c611ed1fd 100644 --- a/core/modules/help_topics/tests/src/Functional/HelpTopicTranslationTest.php +++ b/core/modules/help_topics/tests/src/Functional/HelpTopicTranslationTest.php @@ -2,6 +2,8 @@ namespace Drupal\Tests\help_topics\Functional; +// cspell:ignore hilfetestmodul übersetzung + /** * Verifies help topic translations. *