$subject = '';
$surveyTitle = CRM_Utils_Array::value('surveyTitle', $params);
if ($surveyTitle) {
- $subject = ts('%1', array(1 => $surveyTitle));
- $subject .= ' - ';
+ $subject = $surveyTitle . ' - ';
}
$subject .= ts('Respondent Interview');
$reservedVoterIds = array();
foreach ($this->_contactIds as $cid) {
- $subject = ts('%1', array(1 => $this->_surveyDetails['title'])) . ' - ' . ts('Respondent Reservation');
+ $subject = $this->_surveyDetails['title'] . ' - ' . ts('Respondent Reservation');
$session = CRM_Core_Session::singleton();
$activityParams = array(
'source_contact_id' => $session->get('userID'),
$surveytitle = $surveyValues['title'];
}
- $subject = ts('%1', array(1 => $surveytitle)) . ' - ' . ts('Respondent Reservation');
+ $subject = $surveytitle . ' - ' . ts('Respondent Reservation');
$activityParams['subject'] = $subject;
$activityParams['status_id'] = $scheduledStatusId;
$activityParams['skipRecentView'] = 1;
$type = self::ALL,
$visibility = FALSE,
$isRequired = NULL,
- $groupName = 'Group(s)',
- $tagName = 'Tag(s)',
+ $groupName = ts('Group(s)'),
+ $tagName = ts('Tag(s)'),
$fieldName = NULL,
$groupElementType = 'checkbox'
) {
}
if ($groupElementType == 'select' && !empty($groupsOptions)) {
- $form->add('select', $fName, ts('%1', array(1 => $groupName)), $groupsOptions, FALSE,
+ $form->add('select', $fName, $groupName, $groupsOptions, FALSE,
array('id' => $fName, 'multiple' => 'multiple', 'class' => 'crm-select2')
);
$form->assign('groupCount', count($groupsOptions));
$attributes = CRM_Core_DAO::getAttribute('CRM_Financial_DAO_FinancialTrxn');
$this->add('select', 'payment_processor_id', ts('Payment Processor'), $this->_processors, NULL);
- $label = ($this->_refund) ? 'Refund Amount' : 'Payment Amount';
+ $label = ($this->_refund) ? ts('Refund Amount') : ts('Payment Amount');
$this->addMoney('total_amount',
- ts('%1', array(1 => $label)),
+ $label,
FALSE,
$attributes['total_amount'],
TRUE, 'currency', NULL
$this->add('textarea', 'receipt_text', ts('Confirmation Message'));
// add various dates
- $dateLabel = ($this->_refund) ? 'Refund Date' : 'Received Date';
- $this->addDateTime('trxn_date', ts('%1', array(1 => $dateLabel)), FALSE, array('formatType' => 'activityDateTime'));
+ $dateLabel = ($this->_refund) ? ts('Refund Date') : ts('Received Date');
+ $this->addDateTime('trxn_date', $dateLabel, FALSE, array('formatType' => 'activityDateTime'));
if ($this->_contactId && $this->_id) {
if ($this->_component == 'event') {
$this->assign('lineItemTotal', $lineItemTotal);
}
- $title = "Change selections for {$this->_contributorDisplayName}";
+ $title = ts("Change selections for %1", array(1 => $this->_contributorDisplayName));
if ($title) {
- CRM_Utils_System::setTitle(ts('%1', array(1 => $title)));
+ CRM_Utils_System::setTitle($title);
}
}