From 2bbef78834aee5a7c9a6da46b9931d7239702f21 Mon Sep 17 00:00:00 2001 From: Radomir Butacevic Date: Thu, 12 Sep 2024 15:47:18 +0200 Subject: [PATCH] Add translations for the headline text after the search --- src/Resources/snippet/de_DE/storefront.de-DE.json | 3 +++ src/Resources/snippet/en_GB/storefront.en-GB.json | 3 +++ src/Resources/views/storefront/page/search/index.html.twig | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Resources/snippet/de_DE/storefront.de-DE.json b/src/Resources/snippet/de_DE/storefront.de-DE.json index 2afb95c0..de0918da 100644 --- a/src/Resources/snippet/de_DE/storefront.de-DE.json +++ b/src/Resources/snippet/de_DE/storefront.de-DE.json @@ -4,5 +4,8 @@ "value": "Nosto Cookies", "description": "Ermöglicht die Identifizierung des Benutzers, wenn er nicht angemeldet ist!" } + }, + "search": { + "headlineText": "%count% Suchergebnisse für \"%searchTerm%\" " } } diff --git a/src/Resources/snippet/en_GB/storefront.en-GB.json b/src/Resources/snippet/en_GB/storefront.en-GB.json index 90bb619e..2e1434d3 100644 --- a/src/Resources/snippet/en_GB/storefront.en-GB.json +++ b/src/Resources/snippet/en_GB/storefront.en-GB.json @@ -4,5 +4,8 @@ "value": "Nosto Cookies", "description": "Allow to identify the user when not logged in!" } + }, + "search": { + "headlineText": "%count% Search results for \"%searchTerm%\" " } } diff --git a/src/Resources/views/storefront/page/search/index.html.twig b/src/Resources/views/storefront/page/search/index.html.twig index 0aac5e0a..aaf0548d 100644 --- a/src/Resources/views/storefront/page/search/index.html.twig +++ b/src/Resources/views/storefront/page/search/index.html.twig @@ -9,7 +9,7 @@ : page.listing.criteria.extensions.nostoPagination.total %} {% if hits %} - {{ "search.headline"|trans({ + {{ "search.headlineText"|trans({ '%count%': hits, '%searchTerm%': page.searchTerm, }) }}