Don't translate empty strings
authorColeman Watts <coleman@civicrm.org>
Mon, 2 Mar 2015 02:24:11 +0000 (21:24 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 2 Mar 2015 15:55:21 +0000 (10:55 -0500)
That was... silly.

CRM/Contact/Form/Search/Criteria.php
CRM/Contact/Form/Search/Custom/ActivitySearch.php
CRM/Contact/Form/Search/Custom/Basic.php
CRM/Contribute/Form/ContributionPage/Settings.php
CRM/Core/Block.php
CRM/Core/Form/RecurringEntity.php
CRM/Grant/BAO/Query.php
CRM/Upgrade/Form.php
tools/extensions/org.civicrm.search.activity/ActivitySearch.php
tools/extensions/org.civicrm.search.basic/Basic.php

index 8578b763af8fdf6ac3ed44f6978354e7ac21d59d..74d449c9bc4f01cb0551f0a858c3e10a6b632ff7 100644 (file)
@@ -255,7 +255,7 @@ class CRM_Contact_Form_Search_Criteria {
       $commPreff[] = $form->createElement('advcheckbox', $k, NULL, $v);
     }
 
-    $onHold[] = $form->createElement('advcheckbox', 'on_hold', NULL, ts(''));
+    $onHold[] = $form->createElement('advcheckbox', 'on_hold', NULL, '');
     $form->addGroup($onHold, 'email_on_hold', ts('Email On Hold'));
 
     $form->addGroup($commPreff, 'preferred_communication_method', ts('Preferred Communication Method'));
index daa784f8bbee1fabbec2d104652fc6b65ffb960c..c051ce0d0d52366a0799a50e28baa2eb580e7cee 100644 (file)
@@ -55,9 +55,9 @@ class CRM_Contact_Form_Search_Custom_ActivitySearch implements CRM_Contact_Form_
       ts('Activity Subject') => 'activity_subject',
       ts('Scheduled By') => 'source_contact',
       ts('Scheduled Date') => 'activity_date',
-      ts(' ') => 'activity_id',
-      ts('  ') => 'activity_type_id',
-      ts('   ') => 'case_id',
+      ' ' => 'activity_id',
+      '  ' => 'activity_type_id',
+      '   ' => 'case_id',
       ts('Location') => 'location',
       ts('Duration') => 'duration',
       ts('Details') => 'details',
index 0823a8ba0ee79d3f40be675d83b87bffbfba9521..5a71382d5b7938bfa1b9f1d95a0e5102b680f78e 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
 
     $this->normalize();
     $this->_columns = array(
-      ts('') => 'contact_type',
+      '' => 'contact_type',
       ts('Name') => 'sort_name',
       ts('Address') => 'street_address',
       ts('City') => 'city',
index eaade9d0a1e749f1b90d72b05b67899441c27680..8719d6652c928573f82b2b6a3bc41f1f640c325f 100644 (file)
@@ -164,7 +164,7 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
     $options = array();
     $options[] = $this->createElement('radio', NULL, NULL, ts('Optional'), 1);
     $options[] = $this->createElement('radio', NULL, NULL, ts('Required'), 2);
-    $this->addGroup($options, 'is_for_organization', ts(''));
+    $this->addGroup($options, 'is_for_organization', '');
     $this->add('textarea', 'for_organization', ts('On behalf of Label'), $attributes['for_organization']);
 
     // collect goal amount
index 569f0552129c9759cef64f2ea8b89bb476b469ca..662e756b9e18768870cdb33652a15195457d6891 100644 (file)
@@ -90,7 +90,7 @@ class CRM_Core_Block {
         self::CREATE_NEW => array(
           'template' => 'CreateNew.tpl',
           'info' => ts('CiviCRM Create New Record'),
-          'subject' => ts(''),
+          'subject' => '',
           'active' => TRUE,
           'cache' => BLOCK_CACHE_GLOBAL,
           'visibility' => 1,
index de26da8a7d1105ea4828976bac0f7479bfafe331..babbb9ec968f15d8c50d10de652a6461252f8bd9 100644 (file)
@@ -209,7 +209,7 @@ class CRM_Core_Form_RecurringEntity {
       '2' => ts('On'),
     );
     $form->addRadio('ends', ts("Ends"), $eoptionTypes, array(), NULL);
-    $form->add('text', 'start_action_offset', ts(''), array('size' => 3, 'maxlength' => 2));
+    $form->add('text', 'start_action_offset', '', array('size' => 3, 'maxlength' => 2));
     $form->addFormRule(array('CRM_Core_Form_RecurringEntity', 'formRule'));
     $form->addDate('repeat_absolute_date', ts('On'), FALSE, array('formatType' => 'mailing'));
     $form->add('text', 'exclude_date_list', ts('Exclude Dates'), array(
index f10860f4767f2000d4bf2576f44184cc066709df..db3abfba0ebde5c512b987f473ebc60c520c738f 100644 (file)
@@ -378,22 +378,22 @@ class CRM_Grant_BAO_Query {
     $form->addDate('grant_application_received_date_low', ts('App. Received Date - From'), FALSE, array('formatType' => 'searchDate'));
     $form->addDate('grant_application_received_date_high', ts('To'), FALSE, array('formatType' => 'searchDate'));
 
-    $form->addElement('checkbox', 'grant_application_received_notset', ts(''), NULL);
+    $form->addElement('checkbox', 'grant_application_received_notset', '', NULL);
 
     $form->addDate('grant_money_transfer_date_low', ts('Money Sent Date - From'), FALSE, array('formatType' => 'searchDate'));
     $form->addDate('grant_money_transfer_date_high', ts('To'), FALSE, array('formatType' => 'searchDate'));
 
-    $form->addElement('checkbox', 'grant_money_transfer_date_notset', ts(''), NULL);
+    $form->addElement('checkbox', 'grant_money_transfer_date_notset', '', NULL);
 
     $form->addDate('grant_due_date_low', ts('Report Due Date - From'), FALSE, array('formatType' => 'searchDate'));
     $form->addDate('grant_due_date_high', ts('To'), FALSE, array('formatType' => 'searchDate'));
 
-    $form->addElement('checkbox', 'grant_due_date_notset', ts(''), NULL);
+    $form->addElement('checkbox', 'grant_due_date_notset', '', NULL);
 
     $form->addDate('grant_decision_date_low', ts('Grant Decision Date - From'), FALSE, array('formatType' => 'searchDate'));
     $form->addDate('grant_decision_date_high', ts('To'), FALSE, array('formatType' => 'searchDate'));
 
-    $form->addElement('checkbox', 'grant_decision_date_notset', ts(''), NULL);
+    $form->addElement('checkbox', 'grant_decision_date_notset', '', NULL);
 
     $form->addYesNo('grant_report_received', ts('Grant report received?'), TRUE);
 
index e6d27cbe1dc9195f7548086bbf16c67fa833204d..aeda5995555c404fd85b50f8fcf82945fa6269ed 100644 (file)
@@ -232,7 +232,7 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
    * @return string
    */
   public function getFieldsetTitle() {
-    return ts('');
+    return '';
   }
 
   /**
index 08b85cec1d01f59f8f78e140640d69a45bc33600..8b7faed798e091a3380f08055976355e578670b6 100644 (file)
@@ -58,9 +58,9 @@ class org_civicrm_search_activityimplementsCRM_Contact_Form_Search_Interface {
       ts('Activity Subject') => 'activity_subject',
       ts('Scheduled By') => 'source_contact',
       ts('Scheduled Date') => 'activity_date',
-      ts(' ') => 'activity_id',
-      ts('  ') => 'activity_type_id',
-      ts('   ') => 'case_id',
+      ' ' => 'activity_id',
+      '  ' => 'activity_type_id',
+      '   ' => 'case_id',
       ts('Location') => 'location',
       ts('Duration') => 'duration',
       ts('Details') => 'details',
index aab47c09a3d6178d8397bf51502ffb81a03ca090..03752b157bc691c2e0461856ce7bfe5ccb1c401d 100644 (file)
@@ -49,8 +49,9 @@ class org_civicrm_search_basic extends CRM_Contact_Form_Search_Custom_Baseimplem
     parent::__construct($formValues);
 
     $this->normalize();
-    $this->_columns = array(ts('') => 'contact_type',
-      ts('') => 'contact_sub_type',
+    $this->_columns = array(
+      '' => 'contact_type',
+      '' => 'contact_sub_type',
       ts('Name') => 'sort_name',
       ts('Address') => 'street_address',
       ts('City') => 'city',