Skip to content

Commit

Permalink
UHF-9507: Add translation context and translations for the unit conta…
Browse files Browse the repository at this point in the history
…ct card default heading
  • Loading branch information
teroelonen committed Dec 19, 2024
1 parent a8c461c commit f62bd2e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hdbt.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions translations/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions translations/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f62bd2e

Please sign in to comment.