diff --git a/src/elements/ContactElement.php b/src/elements/ContactElement.php index 3d0bd19e..5ac6ae01 100755 --- a/src/elements/ContactElement.php +++ b/src/elements/ContactElement.php @@ -1095,7 +1095,12 @@ protected function attributeHtml(string $attribute): string { if ($attribute == 'subscriptionStatus') { if ($this->subscriptionStatus) { - return Template::raw(''); + return Template::raw( + Html::tag('label', + Craft::t('campaign', ucfirst($this->subscriptionStatus)), + ['class' => 'subscriptionStatus ' . $this->subscriptionStatus] + ) + ); } } diff --git a/src/templates/contacts/view/index.twig b/src/templates/contacts/view/index.twig index 95e6e0da..c54772ce 100644 --- a/src/templates/contacts/view/index.twig +++ b/src/templates/contacts/view/index.twig @@ -4,3 +4,9 @@ {% set canHaveDrafts = true %} {% set title = 'Contacts'|t('campaign') %} {% set showSiteMenu = true %} + +{% do view.registerTranslations('campaign', [ + 'New contact', + 'Subscribed', + 'Unubscribed', +]) %} diff --git a/src/translations/de/campaign.php b/src/translations/de/campaign.php index 95988564..51a1ce20 100644 --- a/src/translations/de/campaign.php +++ b/src/translations/de/campaign.php @@ -120,6 +120,8 @@ 'Click Rate is calculated by dividing the number of contacts that clicked on a link in an email by the number of contacts that opened the email.' => 'Die Klickrate ist die Division der Anzahl der Kontakte, die auf einen Link in einer E-Mail geklickt haben, durch die Anzahl der Kontakte, die die E-Mail geöffnet haben.', 'Click Rate' => 'Klickrate', 'Clicked' => 'Geklickt', + 'clicked a link in any campaign' => '', + 'clicked a link in the campaign' => '', 'Clicks' => 'Klicks', 'Client' => 'Client', 'Close campaign' => 'Kampagne schließen', @@ -373,6 +375,8 @@ 'month(s)' => 'Monat(e)', 'Months' => 'Monate', 'Name' => 'Name', + 'never opened any campaign' => '', + 'never opened the campaign' => '', 'New {campaignType} campaign' => 'Neue {campaignType}-Kampagne', 'New {mailingListType} mailing list' => 'Neue {mailingListType}-Mailing-Liste', 'New {sendoutType} sendout' => 'Neue {sendoutType}-Sendung', @@ -418,6 +422,8 @@ 'Open Rate' => 'Öffnungsrate', 'Open Rate is calculated by dividing the number of contacts that opened an email by the number of contacts that received the email.' => 'Die Öffnungsrate wird berechnet, indem die Anzahl der Kontakte, die eine E-Mail geöffnet haben, durch die Anzahl der Kontakte, die die E-Mail erhalten haben, geteilt wird.', 'Opened' => 'Geöffnet', + 'opened any campaign' => '', + 'opened the campaign' => '', 'Opens' => 'Öffnungen', 'OR' => 'OR', 'OS' => 'OS', diff --git a/src/translations/en/campaign.php b/src/translations/en/campaign.php index 3ff0f987..17771bea 100644 --- a/src/translations/en/campaign.php +++ b/src/translations/en/campaign.php @@ -119,6 +119,8 @@ 'Click Rate is calculated by dividing the number of contacts that clicked on a link in an email by the number of contacts that opened the email.' => '', 'Click Rate' => '', 'Clicked' => '', + 'clicked a link in any campaign' => '', + 'clicked a link in the campaign' => '', 'Clicks' => '', 'Client' => '', 'Close campaign' => '', @@ -372,6 +374,8 @@ 'month(s)' => '', 'Months' => '', 'Name' => '', + 'never opened any campaign' => '', + 'never opened the campaign' => '', 'New {campaignType} campaign' => '', 'New {mailingListType} mailing list' => '', 'New {sendoutType} sendout' => '', @@ -417,6 +421,8 @@ 'Open Rate' => '', 'Open Rate is calculated by dividing the number of contacts that opened an email by the number of contacts that received the email.' => '', 'Opened' => '', + 'opened any campaign' => '', + 'opened the campaign' => '', 'Opens' => '', 'OR' => '', 'OS' => '', diff --git a/src/translations/fr/campaign.php b/src/translations/fr/campaign.php index 0b0703c0..db3bc425 100644 --- a/src/translations/fr/campaign.php +++ b/src/translations/fr/campaign.php @@ -120,6 +120,8 @@ 'Click Rate is calculated by dividing the number of contacts that clicked on a link in an email by the number of contacts that opened the email.' => 'Le taux de clics est calculé en divisant le nombre de contacts qui ont cliqué sur le lien dans un email et le nombre de contacts qui ont ouvert cet email.', 'Click Rate' => 'Taux de clics', 'Clicked' => 'Cliqué', + 'clicked a link in any campaign' => '', + 'clicked a link in the campaign' => '', 'Clicks' => 'Clics', 'Client' => 'Client', 'Close campaign' => 'Fermer campagne', @@ -373,6 +375,8 @@ 'month(s)' => 'mois', 'Months' => 'Mois', 'Name' => 'Nom', + 'never opened any campaign' => '', + 'never opened the campaign' => '', 'New {campaignType} campaign' => 'Nouvelle newsletter {campaignType}', 'New {mailingListType} mailing list' => 'Nouvelle liste de diffusion {mailingListType}', 'New {sendoutType} sendout' => 'Nouvelle campagne {sendoutType}', @@ -418,6 +422,8 @@ 'Open Rate' => 'Taux d’ouverture', 'Open Rate is calculated by dividing the number of contacts that opened an email by the number of contacts that received the email.' => 'Le taux d’ouverture est calculé en divisant le nombre de contacts qui ont ouvert un courriel par le nombre de contacts qui ont reçu le courriel.', 'Opened' => 'Lus', + 'opened any campaign' => '', + 'opened the campaign' => '', 'Opens' => 'Ouvre', 'OR' => 'TO', 'OS' => 'OS',