From 0802c18f53db43d0b9d543353de797cfcc055aad Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Tue, 10 Jun 2014 14:13:09 -0700 Subject: [PATCH] CRM-14802 - Use correct approach to localize an array of values. ---------------------------------------- * CRM-14802: https://issues.civicrm.org/jira/browse/CRM-14802 --- CRM/Mailing/Form/Search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1