From 6ce821fff2c82dc452158204a791931f865e7199 Mon Sep 17 00:00:00 2001 From: Thorsten Reiter <34274688+reithor@users.noreply.github.com> Date: Fri, 14 Feb 2025 09:06:18 +0100 Subject: [PATCH] IBX-9444: Fixed locale ach-UG (#91) --- phpstan-baseline.neon | 2 +- src/lib/Form/ChoiceList/Loader/AvailableLocaleChoiceLoader.php | 2 +- .../Type/ChoiceList/Loader/AvailableLocaleChoiceLoaderTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6652d0f..df8a3b5 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -56,7 +56,7 @@ parameters: path: src/bundle/Controller/PasswordResetController.php - - message: "#^Call to an undefined method Symfony\\\\Component\\\\Form\\\\FormInterface\\:\\:getClickedButton\\(\\)\\.$#" + message: "#^Call to an undefined method Symfony\\\\Component\\\\Form\\\\FormInterface\\\\:\\:getClickedButton\\(\\)\\.$#" count: 4 path: src/bundle/Controller/UserRegisterController.php diff --git a/src/lib/Form/ChoiceList/Loader/AvailableLocaleChoiceLoader.php b/src/lib/Form/ChoiceList/Loader/AvailableLocaleChoiceLoader.php index ed8f52d..1e3ae18 100644 --- a/src/lib/Form/ChoiceList/Loader/AvailableLocaleChoiceLoader.php +++ b/src/lib/Form/ChoiceList/Loader/AvailableLocaleChoiceLoader.php @@ -19,7 +19,7 @@ class AvailableLocaleChoiceLoader implements ChoiceLoaderInterface { // Acholi dialect is used by In-Context translation // and should not be present on the list of available translations. - private const EXCLUDED_TRANSLATIONS = ['ach']; + private const EXCLUDED_TRANSLATIONS = ['ach-UG']; /** @var \Symfony\Component\Validator\Validator\ValidatorInterface */ private $validator; diff --git a/tests/lib/Form/Type/ChoiceList/Loader/AvailableLocaleChoiceLoaderTest.php b/tests/lib/Form/Type/ChoiceList/Loader/AvailableLocaleChoiceLoaderTest.php index d8fe746..3f7563f 100644 --- a/tests/lib/Form/Type/ChoiceList/Loader/AvailableLocaleChoiceLoaderTest.php +++ b/tests/lib/Form/Type/ChoiceList/Loader/AvailableLocaleChoiceLoaderTest.php @@ -97,7 +97,7 @@ public function providerForGetChoiceList(): array ], ], 'acholi_exlusion' => [ - ['en', 'ach'], + ['en', 'ach-UG'], [], [ 'English' => 'en',