From 526d9a0618703ca77433b21b2385b0b9ce27a76c Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Mon, 27 May 2019 14:17:59 -0400 Subject: [PATCH] Translation in billingblock.tpl - dropping 'Information' --- CRM/Core/Payment.php | 2 +- CRM/Core/Payment/Form.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index b686cd8501..2211c7309a 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -539,7 +539,7 @@ abstract class CRM_Core_Payment { * @return string */ public function getPaymentTypeLabel() { - return $this->_paymentProcessor['payment_type'] == 1 ? 'Credit Card' : 'Direct Debit'; + return $this->_paymentProcessor['payment_type'] == 1 ? ts('Credit Card') : ts('Direct Debit'); } /** diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index 60e946d7dd..f1b265c70e 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -204,7 +204,7 @@ class CRM_Core_Payment_Form { * @return string */ public static function getPaymentTypeLabel($paymentProcessor) { - return ts('%1 Information', [$paymentProcessor->getPaymentTypeLabel()]); + return $paymentProcessor->getPaymentTypeLabel(); } /** -- 2.25.1