Translation in billingblock.tpl - dropping 'Information'
authorSamuel Vanhove <samuel@symbiotic.coop>
Mon, 27 May 2019 18:17:59 +0000 (14:17 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Mon, 27 May 2019 18:17:59 +0000 (14:17 -0400)
CRM/Core/Payment.php
CRM/Core/Payment/Form.php

index b686cd8501a36f70b3b0e90f1e6566abda1749be..2211c7309a13f81f9278b52e1242e3b406841b6d 100644 (file)
@@ -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');
   }
 
   /**
index 60e946d7dd0283edbad023982c0f62215ec8427c..f1b265c70e7e3716c1cac3329c778ef7fd1c1c51 100644 (file)
@@ -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();
   }
 
   /**