From c7692a874824208371b3928e4dd4a892b44466da Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 8 Apr 2013 16:53:08 -0700 Subject: [PATCH] Fix accidental use of t() CRM-12303 --- CRM/Event/Form/ManageEvent/Delete.php | 4 ++-- CRM/Event/Form/Task/Batch.php | 4 ++-- CRM/Utils/VersionCheck.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/Delete.php b/CRM/Event/Form/ManageEvent/Delete.php index 60bf51b4f3..c77defaad1 100644 --- a/CRM/Event/Form/ManageEvent/Delete.php +++ b/CRM/Event/Form/ManageEvent/Delete.php @@ -109,11 +109,11 @@ class CRM_Event_Form_ManageEvent_Delete extends CRM_Event_Form_ManageEvent { } CRM_Event_BAO_Event::del($this->_id); if ($this->_isTemplate) { - CRM_Core_Session::setStatus(ts("'%1' has been deleted.", array(1 => $this->_title)), t('Template Deleted'), 'success'); + CRM_Core_Session::setStatus(ts("'%1' has been deleted.", array(1 => $this->_title)), ts('Template Deleted'), 'success'); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/eventTemplate', 'reset=1')); } else { - CRM_Core_Session::setStatus(ts("'%1' has been deleted.", array(1 => $this->_title)), t('Event Deleted'), 'success'); + CRM_Core_Session::setStatus(ts("'%1' has been deleted.", array(1 => $this->_title)), ts('Event Deleted'), 'success'); } } } diff --git a/CRM/Event/Form/Task/Batch.php b/CRM/Event/Form/Task/Batch.php index ee47bed3b5..6bb4047b00 100644 --- a/CRM/Event/Form/Task/Batch.php +++ b/CRM/Event/Form/Task/Batch.php @@ -325,10 +325,10 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { self::updatePendingOnlineContribution($key, $value['status_id']); } } - CRM_Core_Session::setStatus(ts('The updates have been saved.'), t('Saved'), 'success'); + CRM_Core_Session::setStatus(ts('The updates have been saved.'), ts('Saved'), 'success'); } else { - CRM_Core_Session::setStatus(ts('No updates have been saved.'), t('Not Saved'), 'alert'); + CRM_Core_Session::setStatus(ts('No updates have been saved.'), ts('Not Saved'), 'alert'); } } //end of function diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index 7e0f87f7ee..b6a7e1e0e1 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.php @@ -129,7 +129,7 @@ class CRM_Utils_VersionCheck { if (!$fp) { if (CRM_Core_Permission::check('administer CiviCRM')) { CRM_Core_Session::setStatus( - ts('Unable to write file') . ":$cachefile
" . t('Please check your system file permissions.'), + ts('Unable to write file') . ":$cachefile
" . ts('Please check your system file permissions.'), ts('File Error'), 'error'); } return; -- 2.25.1