(patch.ts-deceased) Add ts() to deceased
authorscardinius <scardinius@chords.pl>
Wed, 4 Sep 2019 12:15:08 +0000 (14:15 +0200)
committerscardinius <scardinius@chords.pl>
Wed, 4 Sep 2019 12:15:08 +0000 (14:15 +0200)
CRM/Contact/Form/Contact.php
CRM/Contact/Page/View.php

index f275cfa377f43641cc2fd4b88682ca8de9fa1ad5..11bef4a62927e7901ab37ba52ab0abe3a6f3ef30 100644 (file)
@@ -227,7 +227,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
 
         $displayName = CRM_Contact_BAO_Contact::displayName($this->_contactId);
         if ($defaults['is_deceased']) {
-          $displayName .= '  <span class="crm-contact-deceased">(deceased)</span>';
+          $displayName .= '  <span class="crm-contact-deceased">(' . ts('deceased') . ')</span>';
         }
         $displayName = ts('Edit %1', [1 => $displayName]);
 
index 8f7a78f214a50250d1dc0d8ce2731f1c2c25653f..52fb0683bb1d5a351f118b29a94c604352aa81e7 100644 (file)
@@ -323,7 +323,7 @@ class CRM_Contact_Page_View extends CRM_Core_Page {
     // set page title
     $title = "{$contactImage} {$displayName}";
     if ($contactDetails[$contactId]['isDeceased']) {
-      $title .= '  <span class="crm-contact-deceased">(deceased)</span>';
+      $title .= '  <span class="crm-contact-deceased">(' . ts('deceased') . ')</span>';
     }
     if ($isDeleted) {
       $title = "<del>{$title}</del>";