Add in translation function around newly converted statusBounce messages
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 8 Nov 2019 20:18:55 +0000 (07:18 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 8 Nov 2019 20:18:55 +0000 (07:18 +1100)
CRM/Campaign/Form/Search.php
CRM/Case/Form/Activity.php

index abfa2fa313a2fd6dc9a9c907f7a2dad4c76497b1..e622c0521fb53ff1dffdf2c36de6dfaf4fcdd16b 100644 (file)
@@ -405,7 +405,7 @@ class CRM_Campaign_Form_Search extends CRM_Core_Form_Search {
       $surveyId = key(CRM_Campaign_BAO_Survey::getSurveys(TRUE, TRUE));
     }
     if (!$surveyId) {
-      CRM_Core_Error::statusBounce('Could not find valid Survey Id.');
+      CRM_Core_Error::statusBounce(ts('Could not find valid Survey Id.'));
     }
     $this->_formValues['campaign_survey_id'] = $this->_formValues['campaign_survey_id'] = $surveyId;
 
index 78f14d286bd5c64fc7fe8b73967b432b298f9c50..3d202f1043f565a5423c93d9fc405290b59df495 100644 (file)
@@ -97,7 +97,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
     if (!$this->_caseId ||
       (!$this->_activityId && !$this->_activityTypeId)
     ) {
-      CRM_Core_Error::statusBounce('required params missing.');
+      CRM_Core_Error::statusBounce(ts('required params missing.'));
     }
 
     //check for case activity access.