From 402f82e1cd38e99a6861e7e9b11fd11e0981396b Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Mon, 30 Sep 2024 13:10:44 +0200 Subject: [PATCH] Add translations to `AdvancedSearch` - Location - Location description - Sublocation - Sublocation description --- .../dpl_react_apps/src/Controller/DplReactAppsController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php index 6e8bb5860..e6443e5af 100644 --- a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php +++ b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php @@ -226,6 +226,10 @@ public function advancedSearch(): array { 'loading-results-text' => $this->t('Loading results...', [], ['context' => 'advanced search']), 'showing-materials-text' => $this->t('showing materials', [], ['context' => 'advanced search']), 'to-advanced-search-button-text' => $this->t('Back to advanced search', [], ['context' => 'advanced search']), + 'advanced-search-filter-location-text' => $this->t('location', [], ['context' => 'advanced search']), + 'advanced-search-filter-location-description-text' => $this->t('Add a comma separated list for multiple locations', [], ['context' => 'advanced search']), + 'advanced-search-filter-sublocation-text' => $this->t('sublocation', [], ['context' => 'advanced search']), + 'advanced-search-filter-sublocation-description-text' => $this->t('Add a comma separated list for multiple sublocations', [], ['context' => 'advanced search']), // Add external API base urls. ] + self::externalApiBaseUrls();