CRM-14802 - Use correct approach to localize an array of values.
authorDave Greenberg <dave@civicrm.org>
Tue, 10 Jun 2014 21:13:09 +0000 (14:13 -0700)
committerDave Greenberg <dave@civicrm.org>
Tue, 10 Jun 2014 21:13:09 +0000 (14:13 -0700)
----------------------------------------
* CRM-14802:
  https://issues.civicrm.org/jira/browse/CRM-14802

CRM/Mailing/Form/Search.php

index 9d49b45551c55fb19025a7c96cdfb86aac46f5b4..d34df37c0d97d51e761b3054d84c6014011e1c45 100644 (file)
@@ -54,9 +54,9 @@ class CRM_Mailing_Form_Search extends CRM_Core_Form {
 
     CRM_Campaign_BAO_Campaign::addCampaignInComponentSearch($this);
 
-    $statusVals = array('Scheduled', 'Complete', 'Running', 'Canceled');
+    $statusVals = array(ts('Scheduled'), ts('Complete'), ts('Running'), ts('Canceled'));
     foreach ($statusVals as $status) {
-      $this->addElement('checkbox', "mailing_status[$status]", NULL, ts($status));
+      $this->addElement('checkbox', "mailing_status[$status]", NULL, $status);
     }
     $this->addElement('checkbox', 'status_unscheduled', NULL, ts('Draft / Unscheduled'));
     $this->addYesNo('is_archived', ts('Mailing is Archived'), TRUE);