Translate two string in AdditionalPayment form
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Tue, 22 Oct 2019 14:33:27 +0000 (15:33 +0100)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Tue, 22 Oct 2019 18:54:43 +0000 (19:54 +0100)
CRM/Contribute/Form/AdditionalPayment.php

index 7f16e375fab0619e2883959efcaa1afc973fa651..4c99235a47e79e28ecf9c1f18bb16f2392fc9be6 100644 (file)
@@ -265,11 +265,11 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
       $this->addRule('net_amount', ts('Please enter a valid monetary value for Net Amount.'), 'money');
     }
 
-    $buttonName = $this->_refund ? 'Record Refund' : 'Record Payment';
+    $buttonName = $this->_refund ? ts('Record Refund') : ts('Record Payment');
     $this->addButtons([
       [
         'type' => 'upload',
-        'name' => ts('%1', [1 => $buttonName]),
+        'name' => $buttonName,
         'js' => $js,
         'isDefault' => TRUE,
       ],