From 315f629f4eff218b09639e826b5e72b1a20598a3 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Thu, 5 Oct 2023 12:29:49 +0300 Subject: [PATCH] Modified the unit services compoent title to be translated with a context and added a translation --- templates/views/views-view--unit-services.html.twig | 2 +- translations/fi.po | 4 ++++ translations/sv.po | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/views/views-view--unit-services.html.twig b/templates/views/views-view--unit-services.html.twig index 2bc1bfdd3..756d7413f 100644 --- a/templates/views/views-view--unit-services.html.twig +++ b/templates/views/views-view--unit-services.html.twig @@ -45,7 +45,7 @@ 'component--service-list', 'component--hardcoded', ], - component_title: 'Services'|trans + component_title: 'Services'|t({}, {'context': 'Unit services title'}) } %} {% block component_content %} diff --git a/translations/fi.po b/translations/fi.po index d8d3b8124..376e57872 100644 --- a/translations/fi.po +++ b/translations/fi.po @@ -698,3 +698,7 @@ msgstr "Linkki avautuu uuteen välilehteen" msgctxt "React search" msgid "An error occured while loading the content. Please reload page." msgstr "Sisällön lataamisessa tapahtui virhe. Kokeile ladata sivu uudelleen." + +msgctxt "Unit services title" +msgid "Services" +msgstr "Palvelut" diff --git a/translations/sv.po b/translations/sv.po index 1891bead8..8f7ee0b11 100644 --- a/translations/sv.po +++ b/translations/sv.po @@ -691,3 +691,7 @@ msgstr "Länken öppnas i en ny flik" msgctxt "React search" msgid "An error occured while loading the content. Please reload page." msgstr "Ett fel uppstod vid hämtning av innehållet. Vänligen ladda om sidan." + +msgctxt "Unit services title" +msgid "Services" +msgstr "Tjänster"