From c7f0979077806ded76706b98b99f5d66983294b4 Mon Sep 17 00:00:00 2001 From: Pierre Baguet Date: Fri, 23 Jan 2026 11:03:46 +0100 Subject: [PATCH] feat: improve category selection translation --- Config/module.xml | 2 +- Form/AbstractHeaderHighlightsImageForm.php | 2 +- I18n/fr_FR.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Config/module.xml b/Config/module.xml index bdbf1b9..9e87672 100644 --- a/Config/module.xml +++ b/Config/module.xml @@ -13,7 +13,7 @@ en_US fr_FR - 1.1.9 + 1.1.10 Openstudio diff --git a/Form/AbstractHeaderHighlightsImageForm.php b/Form/AbstractHeaderHighlightsImageForm.php index 7290eac..5d6c493 100644 --- a/Form/AbstractHeaderHighlightsImageForm.php +++ b/Form/AbstractHeaderHighlightsImageForm.php @@ -38,7 +38,7 @@ protected function buildForm(): void $categoriesArray = []; $categories = (new CategoryQuery)->find(); $lang = $this->request->getSession()->get('thelia.current.lang'); - $categoriesArray["Sélectionner une valeur"] = ""; + $categoriesArray[Translator::getInstance()->trans('Choose a category', [], HeaderHighlights::DOMAIN_NAME)] = ""; foreach ($categories as $category) { $categoryTitle = $category ->getTranslation($lang->getLocale()) diff --git a/I18n/fr_FR.php b/I18n/fr_FR.php index 7f3c059..8c27d0e 100644 --- a/I18n/fr_FR.php +++ b/I18n/fr_FR.php @@ -5,6 +5,7 @@ 'Button Link' => 'Lien de votre bouton', 'Catchphrase' => 'Accroche', 'Category' => 'Categorie', + 'Choose a category' => 'Choisissez une categorie', 'Edit your Header' => 'Modifier vos encarts d\'accueil', 'Header Image does not exist' => 'L\'encart n\'existe pas', 'Header title' => 'Titre de votre encart',