CRM-18972: more translation fixes
authoryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 9 Aug 2016 11:09:10 +0000 (16:39 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 9 Aug 2016 11:09:10 +0000 (16:39 +0530)
----------------------------------------
* CRM-18972: List of strings that cannot be localized cause the absence of ts() function
  https://issues.civicrm.org/jira/browse/CRM-18972

19 files changed:
CRM/Campaign/Form/Task/Interview.php
CRM/Contact/Form/Search/Custom/Sample.php
CRM/Contribute/Form/AdditionalInfo.php
CRM/Report/Form.php
CRM/Report/Form/ActivitySummary.php
CRM/Report/Form/Campaign/SurveyDetails.php
CRM/Report/Form/Contact/Relationship.php
CRM/Report/Form/Contribute/Sybunt.php
CRM/Report/Form/Contribute/TopDonor.php
CRM/Report/Form/Event/IncomeCountSummary.php
CRM/Report/Form/Event/ParticipantListCount.php
CRM/Report/Form/Event/Summary.php
CRM/Report/Form/Extended.php
CRM/Report/Form/Member/ContributionDetail.php
CRM/Report/Form/Member/Detail.php
CRM/Report/Form/Member/Summary.php
CRM/Report/Form/Pledge/Detail.php
CRM/Report/Form/Pledge/Pbnp.php
CRM/Report/Form/Pledge/Summary.php

index c81abf33c958d8773537de32c9834351da116e71..b8103f9fe7dcf87250af7c0d907331d6165753fb 100644 (file)
@@ -292,8 +292,8 @@ WHERE {$clause}
     for ($i = 1; $i < count($options); $i++) {
       $this->addElement('select', "order_bys[{$i}][column]", ts('Order by Column'), $options);
       $this->addElement('select', "order_bys[{$i}][order]", ts('Order by Order'), array(
-          'ASC' => 'Ascending',
-          'DESC' => 'Descending',
+          'ASC' => ts('Ascending'),
+          'DESC' => ts('Descending'),
         ));
     }
 
index a6f8f0e562f574f4a9af96d88c7beab318404016..9ef5b0c07375263b69ece01ed8461ba9eaf8aa7e 100644 (file)
@@ -77,7 +77,7 @@ class CRM_Contact_Form_Search_Custom_Sample extends CRM_Contact_Form_Search_Cust
     /**
      * You can define a custom title for the search form
      */
-    $this->setTitle('My Search Title');
+    $this->setTitle(ts('My Search Title'));
 
     /**
      * if you are using the standard template, this array tells the template what elements
index 33b6c8a7a1af9e432df15104b114fcb75e67aaf4..0609f843b5b5be68b63a8ef3fe8cc5343edd2c2d 100644 (file)
@@ -52,7 +52,7 @@ class CRM_Contribute_Form_AdditionalInfo {
     $dao->is_active = 1;
     $dao->find();
     $min_amount = array();
-    $sel1[0] = '-select product-';
+    $sel1[0] = ts('-select product-');
     while ($dao->fetch()) {
       $sel1[$dao->id] = $dao->name . " ( " . $dao->sku . " )";
       $min_amount[$dao->id] = $dao->min_contribution;
index a4c589826249877b62b536e9fb16ddd825107417..bfad41fa31d6e2905cf2cf96f8d8559ccf7e3eb2 100644 (file)
@@ -448,7 +448,7 @@ class CRM_Report_Form extends CRM_Core_Form {
       if (array_key_exists('civicrm_contact', $this->_columns)) {
         $this->_columns['civicrm_contact']['fields']['exposed_id'] = array(
           'name' => 'id',
-          'title' => 'Contact ID',
+          'title' => ts('Contact ID'),
           'no_repeat' => TRUE,
         );
       }
@@ -1223,13 +1223,13 @@ class CRM_Report_Form extends CRM_Core_Form {
 
           case CRM_Report_Form::OP_DATE:
             // build datetime fields
-            CRM_Core_Form_Date::buildDateRange($this, $fieldName, $count, '_from', '_to', 'From:', FALSE, $operations);
+            CRM_Core_Form_Date::buildDateRange($this, $fieldName, $count, '_from', '_to', ts('From:'), FALSE, $operations);
             $count++;
             break;
 
           case CRM_Report_Form::OP_DATETIME:
             // build datetime fields
-            CRM_Core_Form_Date::buildDateRange($this, $fieldName, $count, '_from', '_to', 'From:', FALSE, $operations, 'searchDate', TRUE);
+            CRM_Core_Form_Date::buildDateRange($this, $fieldName, $count, '_from', '_to', ts('From:'), FALSE, $operations, 'searchDate', TRUE);
             $count++;
             break;
 
@@ -1305,12 +1305,12 @@ class CRM_Report_Form extends CRM_Core_Form {
     $this->assignTabs();
     $this->sqlArray[] = $sql;
     foreach (array('LEFT JOIN') as $term) {
-      $sql = str_replace($term, '<br>&nbsp&nbsp' . $term, $sql);
+      $sql = str_replace($term, '<br />&nbsp&nbsp' . $term, $sql);
     }
     foreach (array('FROM', 'WHERE', 'GROUP BY', 'ORDER BY', 'LIMIT', ';') as $term) {
-      $sql = str_replace($term, '<br><br>' . $term, $sql);
+      $sql = str_replace($term, '<br /><br />' . $term, $sql);
     }
-    $this->sql .= $sql . "<br>";
+    $this->sql .= $sql . "<br />";
 
     $this->assign('sql', $this->sql);
   }
@@ -1447,8 +1447,8 @@ class CRM_Report_Form extends CRM_Core_Form {
       for ($i = 1; $i <= 5; $i++) {
         $this->addElement('select', "order_bys[{$i}][column]", ts('Order by Column'), $options);
         $this->addElement('select', "order_bys[{$i}][order]", ts('Order by Order'), array(
-          'ASC' => 'Ascending',
-          'DESC' => 'Descending',
+          'ASC' => ts('Ascending'),
+          'DESC' => ts('Descending'),
         ));
         $this->addElement('checkbox', "order_bys[{$i}][section]", ts('Order by Section'), FALSE, array('id' => "order_by_section_$i"));
         $this->addElement('checkbox', "order_bys[{$i}][pageBreak]", ts('Page Break'), FALSE, array('id' => "order_by_pagebreak_$i"));
@@ -2135,7 +2135,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
       }
       elseif (isset($this->_columnHeaders[$colName])) {
         if ($subtotal) {
-          $row[$colName] = "Subtotal";
+          $row[$colName] = ts('Subtotal');
           $subtotal = FALSE;
         }
         else {
@@ -2608,7 +2608,8 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
   /**
    * BeginPostProcess function run in both report mode and non-report mode (api).
    */
-  public function beginPostProcessCommon() {}
+  public function beginPostProcessCommon() {
+  }
 
   /**
    * Build the report query.
@@ -3576,8 +3577,7 @@ ORDER BY cg.weight, cf.weight";
 
         case 'Boolean':
           $curFilters[$fieldName]['operatorType'] = CRM_Report_Form::OP_SELECT;
-          $curFilters[$fieldName]['options'] = array('' => ts('- select -'))
-            + CRM_Core_PseudoConstant::get('CRM_Core_BAO_CustomField', 'custom_' . $customDAO->cf_id, array(), 'search');
+          $curFilters[$fieldName]['options'] = array('' => ts('- select -')) + CRM_Core_PseudoConstant::get('CRM_Core_BAO_CustomField', 'custom_' . $customDAO->cf_id, array(), 'search');
           $curFilters[$fieldName]['type'] = CRM_Utils_Type::T_INT;
           break;
 
@@ -4065,7 +4065,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
     if ($orderBy) {
       $addressFields['civicrm_address']['order_bys'] = array(
         'street_name' => array('title' => ts('Street Name')),
-        'street_number' => array('title' => 'Odd / Even Street Number'),
+        'street_number' => array('title' => ts('Odd / Even Street Number')),
         'street_address' => NULL,
         'city' => NULL,
         'postal_code' => NULL,
index 43c2169719d666ebd732881f894e0b5e073161c7..fc83ff1e51fd448863013478682a0d790c8bab6c 100644 (file)
@@ -79,7 +79,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
         'dao' => 'CRM_Core_DAO_Email',
         'fields' => array(
           'email' => array(
-            'title' => 'Email',
+            'title' => ts('Email'),
           ),
         ),
         'order_bys' => array(
@@ -93,7 +93,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
         'dao' => 'CRM_Core_DAO_Email',
         'fields' => array(
           'phone' => array(
-            'title' => 'Phone',
+            'title' => ts('Phone'),
           ),
         ),
         'grouping' => 'contact-fields',
@@ -632,7 +632,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
   public function modifyColumnHeaders() {
     //CRM-16719 modify name of column
     if (!empty($this->_columnHeaders['civicrm_activity_status_id'])) {
-      $this->_columnHeaders['civicrm_activity_status_id']['title'] = "Status";
+      $this->_columnHeaders['civicrm_activity_status_id']['title'] = ts('Status');
     }
   }
 
index 529f98c59055d61ca1c33644e3cb6e22de5eca23..1e2ed8fc811faa9e6948af501293b8374703072c 100644 (file)
@@ -223,7 +223,7 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
             'name' => 'street_number',
             'dbAlias' => 'address_civireport.street_number%2',
           ),
-          'street_number' => array('title' => 'Street Number'),
+          'street_number' => array('title' => ts('Street Number')),
         ),
         'grouping' => 'location-fields',
       ),
index 7d84f079a68e8462154f73068f43fbdb38342fb9..61f86667a0abe87567d41eb6bce23ff9bf83f7c8 100644 (file)
@@ -231,9 +231,9 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
             'title' => ts('Relationship Status'),
             'operatorType' => CRM_Report_Form::OP_SELECT,
             'options' => array(
-              '' => '- Any -',
-              1 => 'Active',
-              0 => 'Inactive',
+              '' => ts('- Any -'),
+              1 => ts('Active'),
+              0 => ts('Inactive'),
             ),
             'type' => CRM_Utils_Type::T_INT,
           ),
@@ -522,8 +522,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
         //for displaying relationship type filter
         if ($value['title'] == 'Relationship') {
           $relTypes = CRM_Core_PseudoConstant::relationshipType();
-          $op = CRM_Utils_Array::value('relationship_type_id_op', $this->_params) == 'in' ?
-            ts('Is one of') . ' ' : ts('Is not one of') . ' ';
+          $op = CRM_Utils_Array::value('relationship_type_id_op', $this->_params) == 'in' ? ts('Is one of') . ' ' : ts('Is not one of') . ' ';
           $relationshipTypes = array();
           foreach ($this->_params['relationship_type_id_value'] as $relationship) {
             $relationshipTypes[] = $relTypes[$relationship]['label_' . $this->relationType];
index a38f5116ff0384d3bb7668b3196f4a8629a086ed..5d5b30a8f408612554b5ca2661596368adfb45d1 100644 (file)
@@ -281,7 +281,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
               $select[] = "SUM({$field['dbAlias']}) as {$tableName}_{$fieldName}";
 
               $this->_columnHeaders["civicrm_upto_{$upTo_year}"]['type'] = $field['type'];
-              $this->_columnHeaders["civicrm_upto_{$upTo_year}"]['title'] = "Up To $upTo_year";
+              $this->_columnHeaders["civicrm_upto_{$upTo_year}"]['title'] = ts("Up To %1", array(1 => $upTo_year));
 
               $this->_columnHeaders["year_{$previous_ppyear}"]['type'] = $field['type'];
               $this->_columnHeaders["year_{$previous_ppyear}"]['title'] = $previous_ppyear;
@@ -293,7 +293,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
               $this->_columnHeaders["year_{$previous_year}"]['title'] = $previous_year;
 
               $this->_columnHeaders["civicrm_life_time_total"]['type'] = $field['type'];
-              $this->_columnHeaders["civicrm_life_time_total"]['title'] = 'LifeTime';;
+              $this->_columnHeaders["civicrm_life_time_total"]['title'] = ts('LifeTime');
             }
             elseif ($fieldName == 'receive_date') {
               $select[] = self::fiscalYearOffset($field['dbAlias']) .
@@ -420,7 +420,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
       if ($dao->fetch()) {
         $statistics['counts']['amount'] = array(
           'value' => $dao->amount,
-          'title' => 'Total LifeTime',
+          'title' => ts('Total LifeTime'),
           'type' => CRM_Utils_Type::T_MONEY,
         );
       }
@@ -526,17 +526,13 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
 
     foreach ($rows as $key => $row) {
       $display["upto_{$upto}"]
-        = CRM_Utils_Array::value("upto_{$upto}", $display)
-        + CRM_Utils_Array::value("civicrm_upto_{$upto}", $row);
+        = CRM_Utils_Array::value("upto_{$upto}", $display) + CRM_Utils_Array::value("civicrm_upto_{$upto}", $row);
       $display[$previous_year]
-        = CRM_Utils_Array::value($previous_year, $display)
-        + CRM_Utils_Array::value($previous_year, $row);
+        = CRM_Utils_Array::value($previous_year, $display) + CRM_Utils_Array::value($previous_year, $row);
       $display[$previous_two_year]
-        = CRM_Utils_Array::value($previous_two_year, $display)
-        + CRM_Utils_Array::value($previous_two_year, $row);
+        = CRM_Utils_Array::value($previous_two_year, $display) + CRM_Utils_Array::value($previous_two_year, $row);
       $display[$previous_three_year]
-        = CRM_Utils_Array::value($previous_three_year, $display)
-        + CRM_Utils_Array::value($previous_three_year, $row);
+        = CRM_Utils_Array::value($previous_three_year, $display) + CRM_Utils_Array::value($previous_three_year, $row);
     }
 
     $graphRows['value'] = $display;
index 02362cd317f6c0d27c034f35f85ef7bba6b988a0..2481484ea6334362515edb3d8c48be932b2c801d 100644 (file)
@@ -164,7 +164,7 @@ class CRM_Report_Form_Contribute_TopDonor extends CRM_Report_Form {
             'operatorType' => CRM_Report_Form::OP_DATE,
           ),
           'currency' => array(
-            'title' => 'Currency',
+            'title' => ts('Currency'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
             'default' => NULL,
index fedf49585fb1de7751a09f77482db8b04449fd06..93c9793e982b9df423ce6e984e5c1ce1d62e62e9 100644 (file)
@@ -65,7 +65,7 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event {
             'required' => TRUE,
           ),
           'id' => array(
-            'title' => 'Event ID',
+            'title' => ts('Event ID'),
             'no_display' => TRUE,
             'required' => TRUE,
           ),
@@ -285,17 +285,17 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event {
       }
       $statistics['counts']['count'] = array(
         'value' => $dao->count,
-        'title' => 'Total Participants',
+        'title' => ts('Total Participants'),
         'type' => CRM_Utils_Type::T_INT,
       );
       $statistics['counts']['amount'] = array(
         'value' => $dao->amount,
-        'title' => 'Total Income',
+        'title' => ts('Total Income'),
         'type' => CRM_Utils_Type::T_MONEY,
       );
       $statistics['counts']['avg'] = array(
         'value' => $avg,
-        'title' => 'Average',
+        'title' => ts('Average'),
         'type' => CRM_Utils_Type::T_MONEY,
       );
     }
index bc95ee0b41aa369c2a7b9dde0f8e1f82c18a70a7..a472ed982dd155a332121c19b7a23fa50843c681 100644 (file)
@@ -149,7 +149,7 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event {
             'required' => TRUE,
           ),
           'organization_name' => array(
-            'title' => 'Employer',
+            'title' => ts('Employer'),
             'default' => TRUE,
             'no_repeat' => TRUE,
           ),
@@ -362,17 +362,17 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event {
       }
       $statistics['counts']['count'] = array(
         'value' => $dao->count,
-        'title' => 'Total Participants',
+        'title' => ts('Total Participants'),
         'type' => CRM_Utils_Type::T_INT,
       );
       $statistics['counts']['amount'] = array(
         'value' => $dao->amount,
-        'title' => 'Total Income',
+        'title' => ts('Total Income'),
         'type' => CRM_Utils_Type::T_MONEY,
       );
-      $statistics['counts']['avg    '] = array(
+      $statistics['counts']['avg'] = array(
         'value' => $avg,
-        'title' => 'Average',
+        'title' => ts('Average'),
         'type' => CRM_Utils_Type::T_MONEY,
       );
     }
index 247e33ceec5b1db6b32bc1b0c341690904678053..9d1e223444640511f21b0946e9558b8be7087ced 100644 (file)
@@ -283,7 +283,7 @@ class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event {
       'type' => CRM_Utils_Type::T_INT,
     );
     $this->_columnHeaders['totalAmount'] = array(
-      'title' => 'Total Income',
+      'title' => ts('Total Income'),
       'type' => CRM_Utils_Type::T_STRING,
     );
   }
index 92c6fd7481992eaaa046df9257ed9d390a27dbd8..886cf569c07cfb14aca14cfa5965bcc22e6b3917 100644 (file)
@@ -315,7 +315,7 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
       'civicrm_participant' => array(
         'dao' => 'CRM_Event_DAO_Participant',
         'fields' => array(
-          'participant_id' => array('title' => 'Participant ID'),
+          'participant_id' => array('title' => ts('Participant ID')),
           'participant_record' => array(
             'name' => 'id',
             'title' => ts('Participant ID'),
@@ -358,7 +358,7 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
             'options' => CRM_Event_PseudoConstant::participantRole(),
           ),
           'participant_register_date' => array(
-            'title' => ' Registration Date',
+            'title' => ts('Registration Date'),
             'operatorType' => CRM_Report_Form::OP_DATE,
           ),
         ),
@@ -386,12 +386,12 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
         'grouping' => 'member-fields',
         'fields' => array(
           'membership_type_id' => array(
-            'title' => 'Membership Type',
+            'title' => ts('Membership Type'),
             'required' => TRUE,
             'alter_display' => 'alterMembershipTypeID',
           ),
           'status_id' => array(
-            'title' => 'Membership Status',
+            'title' => ts('Membership Status'),
             'required' => TRUE,
             'alter_display' => 'alterMembershipStatusID',
           ),
@@ -520,7 +520,7 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
             'title' => ts('Payment Method'),
             'alter_display' => 'alterPaymentType',
           ),
-          'source' => array('title' => 'Contribution Source'),
+          'source' => array('title' => ts('Contribution Source')),
           'trxn_id' => NULL,
           'receive_date' => array('default' => TRUE),
           'receipt_date' => NULL,
@@ -566,7 +566,7 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
             'title' => ts('Individual Contribution'),
             'name' => 'id',
           ),
-          'source' => array('title' => 'Contribution Source'),
+          'source' => array('title' => ts('Contribution Source')),
         ),
         'grouping' => 'contribution-fields',
       ),
index 6a6639d4ad66fdbb554a676e02bc7aabcb38a348..a66b96dfe556918e7680946a13ab46609d39b636 100644 (file)
@@ -199,7 +199,7 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form {
             'options' => CRM_Contribute_PseudoConstant::financialType(),
           ),
           'currency' => array(
-            'title' => 'Currency',
+            'title' => ts('Currency'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
             'default' => NULL,
index fde2da1993de026b50f317480aab8371ad85b0a2..4cc84f6ab2fa34310ccd6dac23eafb7a80c6e94d 100644 (file)
@@ -86,7 +86,7 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form {
         'dao' => 'CRM_Member_DAO_Membership',
         'fields' => array(
           'membership_type_id' => array(
-            'title' => 'Membership Type',
+            'title' => ts('Membership Type'),
             'required' => TRUE,
             'no_repeat' => TRUE,
           ),
@@ -102,7 +102,7 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form {
             'title' => ts('Join Date'),
             'default' => TRUE,
           ),
-          'source' => array('title' => 'Source'),
+          'source' => array('title' => ts('Source')),
         ),
         'filters' => array(
           'join_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
@@ -206,7 +206,7 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form {
             'type' => CRM_Utils_Type::T_INT,
           ),
           'currency' => array(
-            'title' => 'Currency',
+            'title' => ts('Currency'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
             'default' => NULL,
index 8bbba645b1d83b553a8aff7c9448e06ad3f13fc2..56953dc98cc8f72c7473714184365edeae9e5f0b 100644 (file)
@@ -71,7 +71,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form {
         'grouping' => 'member-fields',
         'fields' => array(
           'membership_type_id' => array(
-            'title' => 'Membership Type',
+            'title' => ts('Membership Type'),
             'required' => TRUE,
           ),
         ),
@@ -120,7 +120,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form {
             'type' => 12,
           ),
           'membership_type_id' => array(
-            'title' => 'Membership Type',
+            'title' => ts('Membership Type'),
             'default' => TRUE,
             'chart' => TRUE,
           ),
@@ -159,7 +159,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form {
         ),
         'filters' => array(
           'currency' => array(
-            'title' => 'Currency',
+            'title' => ts('Currency'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
             'default' => NULL,
@@ -179,7 +179,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form {
     // If we have a campaign, build out the relevant elements
     if ($campaignEnabled && !empty($this->activeCampaigns)) {
       $this->_columns['civicrm_membership']['fields']['campaign_id'] = array(
-        'title' => 'Campaign',
+        'title' => ts('Campaign'),
         'default' => 'false',
       );
       $this->_columns['civicrm_membership']['filters']['campaign_id'] = array(
index b504d1905b0312ef03c8748beab98e9dec957012..af3a6a2c473871d1519d7e42141726cfb764ea61 100644 (file)
@@ -137,7 +137,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
         ),
         'filters' => array(
           'pledge_create_date' => array(
-            'title' => 'Pledge Made Date',
+            'title' => ts('Pledge Made Date'),
             'operatorType' => CRM_Report_Form::OP_DATE,
           ),
           'pledge_amount' => array(
@@ -145,7 +145,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
             'operatorType' => CRM_Report_Form::OP_INT,
           ),
           'currency' => array(
-            'title' => 'Currency',
+            'title' => ts('Currency'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
             'default' => NULL,
@@ -189,7 +189,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
     $this->_tagFilter = TRUE;
     if ($campaignEnabled && !empty($this->activeCampaigns)) {
       $this->_columns['civicrm_pledge']['fields']['campaign_id'] = array(
-        'title' => 'Campaign',
+        'title' => ts('Campaign'),
         'default' => 'false',
       );
       $this->_columns['civicrm_pledge']['filters']['campaign_id'] = array(
@@ -435,11 +435,11 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
     // Add Special headers
     $this->_columnHeaders['scheduled_date'] = array(
       'type' => CRM_Utils_Type::T_DATE,
-      'title' => 'Next Payment Due',
+      'title' => ts('Next Payment Due'),
     );
     $this->_columnHeaders['scheduled_amount'] = array(
       'type' => CRM_Utils_Type::T_MONEY,
-      'title' => 'Next Payment Amount',
+      'title' => ts('Next Payment Amount'),
     );
     $this->_columnHeaders['status_id'] = NULL;
 
index 5bbf9d13d6b9800e090ce0ce18a1078535a94a67..2d349bb69cb4ae940fca7d48ec18b15538c6f5eb 100644 (file)
@@ -115,7 +115,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
             'operatorType' => CRM_Report_Form::OP_INT,
           ),
           'currency' => array(
-            'title' => 'Currency',
+            'title' => ts('Currency'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
             'default' => NULL,
@@ -151,7 +151,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
           ),
           'scheduled_amount' => array(
             'type' => CRM_Utils_Type::T_MONEY,
-            'title' => 'Next Payment Amount',
+            'title' => ts('Next Payment Amount'),
           ),
         ),
         'filters' => array(
@@ -203,7 +203,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
     // If we have a campaign, build out the relevant elements
     if ($campaignEnabled && !empty($this->activeCampaigns)) {
       $this->_columns['civicrm_pledge']['fields']['campaign_id'] = array(
-        'title' => 'Campaign',
+        'title' => ts('Campaign'),
         'default' => 'false',
       );
       $this->_columns['civicrm_pledge']['filters']['campaign_id'] = array(
index 6fa2d37d64e3d7acfaad30c631eaecedb597df9b..3abdbca706750a75250b7855be7241ceff09406f 100644 (file)
@@ -125,7 +125,7 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form {
         ),
         'filters' => array(
           'pledge_create_date' => array(
-            'title' => 'Pledge Made Date',
+            'title' => ts('Pledge Made Date'),
             'operatorType' => CRM_Report_Form::OP_DATE,
           ),
           'pledge_amount' => array(
@@ -133,7 +133,7 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form {
             'operatorType' => CRM_Report_Form::OP_INT,
           ),
           'currency' => array(
-            'title' => 'Currency',
+            'title' => ts('Currency'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
             'default' => NULL,
@@ -306,16 +306,16 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form {
       if ($dao->fetch()) {
         $statistics['count']['amount'] = array(
           'value' => $dao->amount,
-          'title' => 'Total Pledged',
+          'title' => ts('Total Pledged'),
           'type' => CRM_Utils_Type::T_MONEY,
         );
         $statistics['count']['count '] = array(
           'value' => $dao->count,
-          'title' => 'Total No Pledges',
+          'title' => ts('Total No Pledges'),
         );
         $statistics['count']['avg   '] = array(
           'value' => $dao->avg,
-          'title' => 'Average',
+          'title' => ts('Average'),
           'type' => CRM_Utils_Type::T_MONEY,
         );
       }