$defaults['payment_processor_type_id'] = $this->_paymentProcessorType;
}
else {
- CRM_Core_Session::setStatus('Payment Processor Type (ID=' . $this->_paymentProcessorType . ') not found. Did you disable the payment processor extension?', 'Missing Payment Processor', 'alert');
+ CRM_Core_Session::setStatus(ts('Payment Processor Type (ID=%1) not found. Did you disable the payment processor extension?', [1 => $this->_paymentProcessorType]), ts('Missing Payment Processor'), 'alert');
}
$cards = json_decode(CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_PaymentProcessor',
$processor = civicrm_api3('payment_processor', 'getsingle', ['name' => $values['name'], 'is_test' => 0]);
$errors = Civi\Payment\System::singleton()->checkProcessorConfig($processor);
if ($errors) {
- CRM_Core_Session::setStatus($errors, 'Payment processor configuration invalid', 'error');
+ CRM_Core_Session::setStatus($errors, ts('Payment processor configuration invalid'), 'error');
Civi::log()->error('Payment processor configuration invalid: ' . $errors);
CRM_Core_Session::singleton()->pushUserContext($this->refreshURL);
}
$this->getElement('buttons')->setElements($buttons);
if (!empty($setStatus)) {
- CRM_Core_Session::setStatus("Some fields are loaded as 'readonly' as they have been set (overridden) in civicrm.settings.php.", '', 'info', array('expires' => 0));
+ CRM_Core_Session::setStatus(ts("Some fields are loaded as 'readonly' as they have been set (overridden) in civicrm.settings.php."), '', 'info', array('expires' => 0));
}
}
$dao = self::$_tableDAOMapper[$linkedEntityTable];
}
else {
- CRM_Core_Session::setStatus('Could not update mode for linked entities');
+ CRM_Core_Session::setStatus(ts('Could not update mode for linked entities'));
return NULL;
}
$entityTable = $linkedEntityTable;
$validate = FALSE;
//validations
if (count($this->_participantIds) > $this->_maxParticipations) {
- CRM_Core_Session::setStatus("The maximum number of records you can select for Update multiple participants is {$this->_maxParticipations}. You have selected " . count($this->_participantIds) . ". Please select fewer participantions from your search results and try again.");
+ CRM_Core_Session::setStatus(ts("The maximum number of records you can select for Update multiple participants is %1. You have selected %2. Please select fewer participants from your search results and try again.", [
+ 1 => $this->_maxParticipations,
+ 2 => count($this->_participantIds),
+ ]));
$validate = TRUE;
}
$profiles = CRM_Core_BAO_UFGroup::getProfiles($types, TRUE);
if (empty($profiles)) {
- CRM_Core_Session::setStatus("To use Update multiple participants, you need to configure a profile containing only Participant fields (e.g. Participant Status, Participant Role, etc.). Configure a profile at 'Administer CiviCRM >> Customize >> CiviCRM Profile'.");
+ CRM_Core_Session::setStatus(ts("To use Update multiple participants, you need to configure a profile containing only Participant fields (e.g. Participant Status, Participant Role, etc.). Configure a profile at 'Administer CiviCRM >> Customize >> CiviCRM Profile'."));
CRM_Utils_System::redirect($this->_userContext);
}