From 7026051a56f76a9b776eb6d38b5c6a71258f09ad Mon Sep 17 00:00:00 2001 From: leevi-identio Date: Tue, 27 Jan 2026 15:02:34 +0200 Subject: [PATCH] ASU-1827: Edit translations for integrations summary view --- .../Controller/IntegrationSummaryController.php | 14 +++++++------- .../custom/asu_content/translations/fi.po | 17 +++++++---------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/public/modules/custom/asu_content/src/Controller/IntegrationSummaryController.php b/public/modules/custom/asu_content/src/Controller/IntegrationSummaryController.php index 410b751e..0201d73c 100644 --- a/public/modules/custom/asu_content/src/Controller/IntegrationSummaryController.php +++ b/public/modules/custom/asu_content/src/Controller/IntegrationSummaryController.php @@ -59,7 +59,7 @@ public static function create(ContainerInterface $container) { */ private const SORTABLE = [ 'integration' => 'integration_name', - 'status' => 'status', + 'can_be_exported' => 'status', 'last_mapped' => 'last_mapped', 'project_housing_company' => 'project_housing_company', 'apartment_address' => 'apartment_address', @@ -103,11 +103,11 @@ public function summary(Request $request) { }; $header = [ - $headerCell('integration', $this->t('Integration')), - $headerCell('status', $this->t('Status')), + $headerCell('integration', $this->t('Name')), + $headerCell('can_be_exported', $this->t('Can be exported')), $headerCell('last_mapped', $this->t('Last successful export')), - $headerCell('project_housing_company', $this->t('Project Name')), - $headerCell('apartment_address', $this->t('Apartment Address')), + $headerCell('project_housing_company', $this->t('Project')), + $headerCell('apartment_address', $this->t('Apartment')), $headerCell('missing_fields', $this->t('Missing Fields')), ]; @@ -148,10 +148,10 @@ public function summary(Request $request) { // Format status with visual indicator. $status_display = $r['status']; if (isset($r['status_key']) && $r['status_key'] === 'success') { - $status_display = '✓ ' . $status_display; + $status_display = '✓'; } elseif (isset($r['status_key']) && $r['status_key'] === 'fail') { - $status_display = '✗ ' . $status_display; + $status_display = '✗'; } // Format missing fields. diff --git a/public/modules/custom/asu_content/translations/fi.po b/public/modules/custom/asu_content/translations/fi.po index 9a79903f..6c4ca831 100644 --- a/public/modules/custom/asu_content/translations/fi.po +++ b/public/modules/custom/asu_content/translations/fi.po @@ -39,8 +39,8 @@ msgstr "Tallenna asetukset" msgid "delete" msgstr "poista" -msgid "Status" -msgstr "Tila" +msgid "Can be exported" +msgstr "Voidaan viedä" msgid "Register" msgstr "Rekisteröidy" @@ -35920,6 +35920,9 @@ msgstr "" msgid "Integrations" msgstr "Integraatiot" +msgid "Integrations summary" +msgstr "Integraatioiden yhteenveto" + msgid "Integrations" msgstr "" msgid "Add new context" @@ -43405,9 +43408,6 @@ msgstr "Helsingin kaupungin logo" msgid "You already have an offer or have been sold an apartment in this project and cannot submit a new application." msgstr "Sinulla on jo myyty tai tarjottu asunto tässä kohteessa etkä siksi voi tehdä uutta hakemusta." -msgid "Integration" -msgstr "Integraatio" - msgid "Status" msgstr "Tila" @@ -43417,11 +43417,8 @@ msgstr "UUID" msgid "Project UUID" msgstr "Kohteen UUID" -msgid "Project Name" -msgstr "Kohteen nimi" - -msgid "Apartment Address" -msgstr "Asunnon osoite" +msgid "Apartment" +msgstr "Asunto" msgid "Project URL" msgstr "Kohteen URL"