From f62bd2ec85264b28f1299834330bbfa6a2f60db8 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Thu, 19 Dec 2024 17:28:50 +0200 Subject: [PATCH] UHF-9507: Add translation context and translations for the unit contact card default heading --- hdbt.theme | 2 +- translations/fi.po | 4 ++++ translations/sv.po | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hdbt.theme b/hdbt.theme index 1a4b8986e..fbc272112 100644 --- a/hdbt.theme +++ b/hdbt.theme @@ -974,7 +974,7 @@ function hdbt_preprocess_paragraph__unit_contact_card(array &$variables) : void // value Contact information. If the unit name is used check if the // unit name has been overridden. if (empty($heading_value) || $heading_value === 'default') { - $variables['unit_contact_card']['heading'] = t('Contact information'); + $variables['unit_contact_card']['heading'] = t('Contact information', [], ['context' => 'Unit contact card default heading']); } elseif ($heading_value === 'unit_name') { $variables['unit_contact_card']['heading'] = !empty($unit_translation?->get('name_override')->value) diff --git a/translations/fi.po b/translations/fi.po index c92620b70..d2564580a 100644 --- a/translations/fi.po +++ b/translations/fi.po @@ -1339,3 +1339,7 @@ msgstr "Tervetuloa hel.fin Drupalin sisällönhallintaan. Ohjeet löydät" msgctxt "User info page" msgid "Hel.fi content producer's guide (in Finnish)" msgstr "Hel.fin sisällöntuottajan oppaasta" + +msgctxt "Unit contact card default heading" +msgid "Contact information" +msgstr "Yhteystiedot" diff --git a/translations/sv.po b/translations/sv.po index d6b2aa2fe..077476098 100644 --- a/translations/sv.po +++ b/translations/sv.po @@ -1333,3 +1333,7 @@ msgstr "Välkommen till innehållshanteringen av hel.fi Drupal. Du hittar instru msgctxt "User info page" msgid "Hel.fi content producer's guide (in Finnish)" msgstr "Hel.fi innehållsproducentens guide (på finska)" + +msgctxt "Unit contact card default heading" +msgid "Contact information" +msgstr "Kontaktuppgifter"