// Add display column and filter for Survey Results, Campaign and Engagement Index if CiviCampaign is enabled
$this->_columns['civicrm_activity']['fields']['result'] = array(
- 'title' => 'Survey Result',
+ 'title' => ts('Survey Result'),
'default' => 'false',
);
$this->_columns['civicrm_activity']['filters']['result'] = array(
);
if (!empty($this->activeCampaigns)) {
$this->_columns['civicrm_activity']['fields']['campaign_id'] = array(
- 'title' => 'Campaign',
+ 'title' => ts('Campaign'),
'default' => 'false',
);
$this->_columns['civicrm_activity']['filters']['campaign_id'] = array(
}
if (!empty($this->engagementLevels)) {
$this->_columns['civicrm_activity']['fields']['engagement_level'] = array(
- 'title' => 'Engagement Index',
+ 'title' => ts('Engagement Index'),
'default' => 'false',
);
$this->_columns['civicrm_activity']['filters']['engagement_level'] = array(
),
),
'order_bys' => array(
- 'state_province_id' => array('title' => 'State/Province'),
- 'city' => array('title' => 'City'),
- 'postal_code' => array('title' => 'Postal Code'),
+ 'state_province_id' => array('title' => ts('State/Province')),
+ 'city' => array('title' => ts('City')),
+ 'postal_code' => array('title' => ts('Postal Code')),
),
),
'civicrm_country' => array(
'dao' => 'CRM_Core_DAO_Country',
'fields' => array(
- 'name' => array('title' => 'Country', 'default' => TRUE),
+ 'name' => array('title' => ts('Country'), 'default' => TRUE),
),
'order_bys' => array(
- 'name' => array('title' => 'Country'),
+ 'name' => array('title' => ts('Country')),
),
'grouping' => 'contact-fields',
),
'title' => ts('Membership Status'),
'default' => TRUE,
),
- 'source' => array('title' => 'Membership Source'),
+ 'source' => array('title' => ts('Membership Source')),
),
),
'civicrm_participant' => array(
'default' => TRUE,
),
'start_date' => array(
- 'title' => 'Start Date ',
+ 'title' => ts('Start Date'),
'type' => CRM_Report_Form::OP_DATE,
),
'end_date' => array(
- 'title' => 'End Date ',
+ 'title' => ts('End Date'),
'type' => CRM_Report_Form::OP_DATE,
),
),
'options' => CRM_Contribute_PseudoConstant::paymentInstrument(),
),
'currency' => array(
- 'title' => 'Currency',
+ 'title' => ts('Currency'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
'default' => NULL,
$statistics['counts']['amount'] = array(
'value' => implode(', ', $amount),
- 'title' => 'Total Amount',
+ 'title' => ts('Total Amount'),
'type' => CRM_Utils_Type::T_STRING,
);
$statistics['counts']['avg'] = array(
'value' => implode(', ', $avg),
- 'title' => 'Average',
+ 'title' => ts('Average'),
'type' => CRM_Utils_Type::T_STRING,
);
return $statistics;
'type' => CRM_Utils_Type::T_STRING,
),
'currency' => array(
- 'title' => 'Currency',
+ 'title' => ts('Currency'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
'default' => NULL,
),
'filters' => array(
'soft_credit_type_id' => array(
- 'title' => 'Soft Credit Type',
+ 'title' => ts('Soft Credit Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
'default' => NULL,
'required' => TRUE,
),
'contribution_status_id' => array(
- 'title' => 'Contribution Status',
+ 'title' => ts('Contribution Status'),
'default' => TRUE,
),
'check_number' => array(
'receive_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
'total_amount' => array('title' => ts('Amount Between')),
'currency' => array(
- 'title' => 'Currency',
+ 'title' => ts('Currency'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
'default' => NULL,
if ($campaignEnabled && !empty($this->activeCampaigns)) {
$this->_columns['civicrm_contribution']['fields']['campaign_id'] = array(
- 'title' => 'Campaign',
+ 'title' => ts('Campaign'),
'default' => 'false',
);
$this->_columns['civicrm_contribution']['filters']['campaign_id'] = array(
'required' => TRUE,
),
'contribution_status_id' => array(
- 'title' => 'Contribution Status',
+ 'title' => ts('Contribution Status'),
'default' => TRUE,
),
'check_number' => array(
'receive_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
'total_amount' => array('title' => ts('Amount Between')),
'currency' => array(
- 'title' => 'Currency',
+ 'title' => ts('Currency'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
'default' => NULL,
if ($campaignEnabled && !empty($this->activeCampaigns)) {
$this->_columns['civicrm_contribution']['fields']['campaign_id'] = array(
- 'title' => 'Campaign',
+ 'title' => ts('Campaign'),
'default' => 'false',
);
$this->_columns['civicrm_contribution']['filters']['campaign_id'] = array(
'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,
//display percentages for new, lapsed, upgraded, downgraded, and maintained contributors
$statistics['counts']['count_new'] = array(
'value' => $new,
- 'title' => '% New Donors',
+ 'title' => ts('% New Donors'),
);
$statistics['counts']['count_lapsed'] = array(
'value' => $lapsed,
- 'title' => '% Lapsed Donors',
+ 'title' => ts('% Lapsed Donors'),
);
$statistics['counts']['count_upgraded'] = array(
'value' => $upgraded,
- 'title' => '% Upgraded Donors',
+ 'title' => ts('% Upgraded Donors'),
);
$statistics['counts']['count_downgraded'] = array(
'value' => $downgraded,
- 'title' => '% Downgraded Donors',
+ 'title' => ts('% Downgraded Donors'),
);
$statistics['counts']['count_maintained'] = array(
'value' => $maintained,
- 'title' => '% Maintained Donors',
+ 'title' => ts('% Maintained Donors'),
);
$select = "
$count2 += $dao->count2;
}
- $statistics['counts']['range_one_title'] = array('title' => 'Initial Date Range:');
+ $statistics['counts']['range_one_title'] = array('title' => ts('Initial Date Range:'));
$statistics['counts']['amount'] = array(
'value' => implode(', ', $amount),
- 'title' => 'Total Amount',
+ 'title' => ts('Total Amount'),
'type' => CRM_Utils_Type::T_STRING,
);
$statistics['counts']['count'] = array(
'value' => $count,
- 'title' => 'Total Donations',
+ 'title' => ts('Total Donations'),
);
$statistics['counts']['avg'] = array(
'value' => implode(', ', $average),
- 'title' => 'Average',
+ 'title' => ts('Average'),
'type' => CRM_Utils_Type::T_STRING,
);
$statistics['counts']['range_two_title'] = array(
- 'title' => 'Second Date Range:',
+ 'title' => ts('Second Date Range:'),
);
$statistics['counts']['amount2'] = array(
'value' => implode(', ', $amount2),
- 'title' => 'Total Amount',
+ 'title' => ts('Total Amount'),
'type' => CRM_Utils_Type::T_STRING,
);
$statistics['counts']['count2'] = array(
'value' => $count2,
- 'title' => 'Total Donations',
+ 'title' => ts('Total Donations'),
);
$statistics['counts']['avg2'] = array(
'value' => implode(', ', $average2),
- 'title' => 'Average',
+ 'title' => ts('Average'),
'type' => CRM_Utils_Type::T_STRING,
);
}
}
$this->_columnHeaders['change'] = array(
- 'title' => '% Change',
+ 'title' => ts('% Change'),
'type' => CRM_Utils_Type::T_INT,
);
'filters' => array(
'receive_date' => array('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,
),
'filters' => array(
'soft_credit_type_id' => array(
- 'title' => 'Soft Credit Type',
+ 'title' => ts('Soft Credit Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
'default' => NULL,
'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,
'title' => ts('Soft Credit Amount'),
),
'soft_credit_type_id' => array(
- 'title' => 'Soft Credit Type',
+ 'title' => ts('Soft Credit Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
'default' => NULL,
// If we have a campaign, build out the relevant elements
if ($campaignEnabled && !empty($this->activeCampaigns)) {
$this->_columns['civicrm_contribution']['fields']['campaign_id'] = array(
- 'title' => 'Campaign',
+ 'title' => ts('Campaign'),
'default' => 'false',
);
$this->_columns['civicrm_contribution']['filters']['campaign_id'] = array(
'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',
'no_display' => TRUE,
'options' => CRM_Event_PseudoConstant::participantRole(),
),
'participant_register_date' => array(
- 'title' => 'Registration Date',
+ 'title' => ts('Registration Date'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
'fee_currency' => array(
'grouping' => 'contrib-fields',
'filters' => array(
'receive_date' => array(
- 'title' => 'Payment Date',
+ 'title' => ts('Payment Date'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
'financial_type_id' => array(
'title' => ts('Blank column at the End'),
'type' => 'select',
'options' => array(
- '' => '-select-',
+ '' => ts('-select-'),
1 => ts('One'),
2 => ts('Two'),
3 => ts('Three'),
'options' => CRM_Core_OptionGroup::values('event_type'),
),
'event_start_date' => array(
- 'title' => 'Event Start Date',
+ 'title' => ts('Event Start Date'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
'event_end_date' => array(
- 'title' => 'Event End Date',
+ 'title' => ts('Event End Date'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
),
*/
public function bounce_type() {
- $data = array('' => '--Please Select--');
+ $data = array('' => ts('--Please Select--'));
$bounce_type = new CRM_Mailing_DAO_BounceType();
$query = "SELECT name FROM civicrm_mailing_bounce_type";
'title' => ts('Delivered'),
),
'accepted_rate' => array(
- 'title' => 'Accepted Rate',
+ 'title' => ts('Accepted Rate'),
'statistics' => array(
'calc' => 'PERCENTAGE',
'top' => 'civicrm_mailing_event_delivered.delivered_count',
'title' => ts('Bounce'),
),
'bounce_rate' => array(
- 'title' => 'Bounce Rate',
+ 'title' => ts('Bounce Rate'),
'statistics' => array(
'calc' => 'PERCENTAGE',
'top' => 'civicrm_mailing_event_bounce.bounce_count',
'title' => ts('Unique Opens'),
),
'unique_open_rate' => array(
- 'title' => 'Unique Open Rate',
+ 'title' => ts('Unique Open Rate'),
'statistics' => array(
'calc' => 'PERCENTAGE',
'top' => 'civicrm_mailing_event_opened.unique_open_count',
'title' => ts('Total Opens'),
),
'open_rate' => array(
- 'title' => 'Total Open Rate',
+ 'title' => ts('Total Open Rate'),
'statistics' => array(
'calc' => 'PERCENTAGE',
'top' => 'civicrm_mailing_event_opened.open_count',
'title' => ts('Clicks'),
),
'CTR' => array(
- 'title' => 'Click through Rate',
+ 'title' => ts('Click through Rate'),
'default' => 0,
'statistics' => array(
'calc' => 'PERCENTAGE',
),
),
'CTO' => array(
- 'title' => 'Click to Open Rate',
+ 'title' => ts('Click to Open Rate'),
'default' => 0,
'statistics' => array(
'calc' => 'PERCENTAGE',
'grouping' => 'member-fields',
'fields' => array(
'membership_type_id' => array(
- 'title' => 'Membership Type',
+ 'title' => ts('Membership Type'),
'required' => TRUE,
'type' => CRM_Utils_Type::T_STRING,
),
),
'filters' => array(
'membership_end_date' => array(
- 'title' => 'Lapsed Memberships',
+ 'title' => ts('Lapsed Memberships'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
),
// 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(