From: Dave Greenberg Date: Tue, 10 Jun 2014 21:13:09 +0000 (-0700) Subject: CRM-14802 - Use correct approach to localize an array of values. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0802c18f53db43d0b9d543353de797cfcc055aad;p=civicrm-core.git CRM-14802 - Use correct approach to localize an array of values. ---------------------------------------- * CRM-14802: https://issues.civicrm.org/jira/browse/CRM-14802 --- diff --git a/CRM/Mailing/Form/Search.php b/CRM/Mailing/Form/Search.php index 9d49b45551..d34df37c0d 100644 --- a/CRM/Mailing/Form/Search.php +++ b/CRM/Mailing/Form/Search.php @@ -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);