]> BookStack Code Mirror - bookstack/commitdiff
Languages: Enabled Welsh option
authorDan Brown <redacted>
Fri, 4 Oct 2024 09:59:34 +0000 (10:59 +0100)
committerDan Brown <redacted>
Fri, 4 Oct 2024 10:02:17 +0000 (11:02 +0100)
lang/en/settings.php
tests/LanguageTest.php

index f4c84092c6f71a8a580721269fdaa1899abe864d..5427cb9419ea1ff716704e5b06630b9afcd2c3b2 100644 (file)
@@ -295,6 +295,7 @@ return [
         'bs' => 'Bosanski',
         'ca' => 'Català',
         'cs' => 'Česky',
+        'cy' => 'Cymraeg',
         'da' => 'Dansk',
         'de' => 'Deutsch (Sie)',
         'de_informal' => 'Deutsch (Du)',
index 6b6856184c91c64744f3fe7c6df5ebbbe52b2cba..abe06407e1ef7c636234fc14df50f4aab41cde39 100644 (file)
@@ -35,7 +35,8 @@ class LanguageTest extends TestCase
         $diffs = array_diff($this->langs, $dropdownLocales);
         if (count($diffs) > 0) {
             $diffText = implode(',', $diffs);
-            $this->addWarning("Languages: {$diffText} found in files but not in language select dropdown.");
+            $warning = "Languages: {$diffText} found in files but not in language select dropdown.";
+            $this->fail($warning);
         }
         $this->assertTrue(true);
     }