$this->assign('multiClient', $isMultiClient);
if ($this->_action & CRM_Core_Action::DELETE || $this->_action & CRM_Core_Action::RENEW) {
- $title = 'Delete';
+ $title = ts('Delete');
if ($this->_action & CRM_Core_Action::RENEW) {
- $title = 'Restore';
+ $title = ts('Restore');
}
$this->addButtons(array(
array(
case 'grant_report_received':
if ($value == 1) {
- $yesNo = 'Yes';
+ $yesNo = ts('Yes');
$query->_where[$grouping][] = "civicrm_grant.grant_report_received $op $value";
}
elseif ($value == 0) {
- $yesNo = 'No';
+ $yesNo = ts('No');
$query->_where[$grouping][] = "civicrm_grant.grant_report_received IS NULL";
}
-
- $query->_qill[$grouping][] = "Grant Report Received = $yesNo ";
+ $query->_qill[$grouping][] = ts('Grant Report Received = %1', array(1 => $yesNo));
$query->_tables['civicrm_grant'] = $query->_whereTables['civicrm_grant'] = 1;
return;
$actionLinks = self::actionLinks();
//CRM-10117
if ($dao->is_reserved) {
- $actionLinks[CRM_Core_Action::BROWSE]['name'] = 'View Price Fields';
+ $actionLinks[CRM_Core_Action::BROWSE]['name'] = ts('View Price Fields');
}
$priceSet[$dao->id]['action'] = CRM_Core_Action::formLink($actionLinks, $action,
array('sid' => $dao->id),
public static function validateContactActivityProfile($activityId, $contactId, $gid) {
$errors = array();
if (!$activityId) {
- $errors[] = 'Profile is using one or more activity fields, and is missing the activity Id (aid) in the URL.';
+ $errors[] = ts('Profile is using one or more activity fields, and is missing the activity Id (aid) in the URL.');
return $errors;
}
CRM_Activity_BAO_Activity::retrieve($activityParams, $activityDetails);
if (empty($activityDetails)) {
- $errors[] = 'Invalid Activity Id (aid).';
+ $errors[] = ts('Invalid Activity Id (aid).');
return $errors;
}
!in_array($contactId, $activityDetails['target_contact'])
)
) {
- $errors[] = 'This activity cannot be edited or viewed via this profile.';
+ $errors[] = ts('This activity cannot be edited or viewed via this profile.');
}
return $errors;
$isStatusFilter = FALSE;
$relStatus = NULL;
if (CRM_Utils_Array::value('is_active_value', $this->_params) == '1') {
- $relStatus = 'Is equal to Active';
+ $relStatus = ts('Is equal to Active');
}
elseif (CRM_Utils_Array::value('is_active_value', $this->_params) == '0') {
- $relStatus = 'Is equal to Inactive';
+ $relStatus = ts('Is equal to Inactive');
}
if (!empty($statistics['filters'])) {
foreach ($statistics['filters'] as $id => $value) {
// build the chart.
$config = CRM_Core_Config::Singleton();
$graphRows['xname'] = $this->_interval;
- $graphRows['yname'] = "Amount ({$config->defaultCurrency})";
+ $graphRows['yname'] = ts('Amount (%1)', array(1 => $config->defaultCurrency));
CRM_Utils_OpenFlashChart::chart($graphRows, $this->_params['charts'], $this->_interval);
$this->assign('chartType', $this->_params['charts']);
}
$graphRows['value'] = $display;
$config = CRM_Core_Config::Singleton();
$chartInfo = array(
- 'legend' => 'Sybunt Report',
- 'xname' => 'Year',
- 'yname' => "Amount ({$config->defaultCurrency})",
+ 'legend' => ts('Sybunt Report'),
+ 'xname' => ts('Year'),
+ 'yname' => ts('Amount (%1)', array(1 => $config->defaultCurrency)),
);
if ($this->_params['charts']) {
// build the chart.
if ((!empty($rows)) && $countEvent != 1) {
$chartInfo = array(
- 'legend' => 'Participants Summary',
- 'xname' => 'Event',
- 'yname' => 'Total Participants',
+ 'legend' => ts('Participants Summary'),
+ 'xname' => ts('Event'),
+ 'yname' => ts('Total Participants'),
);
if (!empty($graphRows)) {
foreach ($graphRows[$this->_interval] as $key => $val) {
$graph[$val] = $graphRows['value'][$key];
}
$chartInfo['values'] = $graph;
- $chartInfo['tip'] = 'Participants : #val#';
+ $chartInfo['tip'] = ts('Participants : %1', array(1 => '#val#'));
$chartInfo['xLabelAngle'] = 20;
// build the chart.
if ((!empty($rows)) && $countEvent != 1) {
$config = CRM_Core_Config::Singleton();
$chartInfo = array(
- 'legend' => 'Event Summary',
- 'xname' => 'Event',
- 'yname' => "Total Amount ({$config->defaultCurrency})",
+ 'legend' => ts('Event Summary'),
+ 'xname' => ts('Event'),
+ 'yname' => ts('Total Amount (%1)', array(1 => $config->defaultCurrency)),
);
if (!empty($graphRows)) {
foreach ($graphRows[$this->_interval] as $key => $val) {
// If the email address has been deleted
if (array_key_exists('civicrm_email_email', $row)) {
if (empty($rows[$rowNum]['civicrm_email_email'])) {
- $rows[$rowNum]['civicrm_email_email'] = '<del>Email address deleted</del>';
+ $rows[$rowNum]['civicrm_email_email'] = ts('<del>Email address deleted</del>');
}
$entryFound = TRUE;
}
// If the email address has been deleted
if (array_key_exists('civicrm_email_email', $row)) {
if (empty($rows[$rowNum]['civicrm_email_email'])) {
- $rows[$rowNum]['civicrm_email_email'] = '<del>Email address deleted</del>';
+ $rows[$rowNum]['civicrm_email_email'] = ts('<del>Email address deleted</del>');
}
$entryFound = TRUE;
}
// If the email address has been deleted
if (array_key_exists('civicrm_email_email', $row)) {
if (empty($rows[$rowNum]['civicrm_email_email'])) {
- $rows[$rowNum]['civicrm_email_email'] = '<del>Email address deleted</del>';
+ $rows[$rowNum]['civicrm_email_email'] = ts('<del>Email address deleted</del>');
}
$entryFound = TRUE;
}
if ($isMembershipType) {
$graphRows['value'] = $display;
$chartInfo = array(
- 'legend' => 'Membership Summary',
- 'xname' => 'Member Since / Member Type',
- 'yname' => 'Fees',
+ 'legend' => ts('Membership Summary'),
+ 'xname' => ts('Member Since / Member Type'),
+ 'yname' => ts('Fees'),
);
CRM_Utils_OpenFlashChart::reportChart($graphRows, $this->_params['charts'], $interval, $chartInfo);
}