From d19873243ae3b3aba00089c81b8f844d8cc699cc Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 6 Jun 2019 17:40:09 +1200 Subject: [PATCH] Wrap titles in metadata in ts on payment.create api --- api/v3/Payment.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/v3/Payment.php b/api/v3/Payment.php index bab232ab49..7314311147 100644 --- a/api/v3/Payment.php +++ b/api/v3/Payment.php @@ -156,26 +156,26 @@ function _civicrm_api3_payment_create_spec(&$params) { $params = [ 'contribution_id' => [ 'api.required' => 1, - 'title' => 'Contribution ID', + 'title' => ts('Contribution ID'), 'type' => CRM_Utils_Type::T_INT, ], 'total_amount' => [ 'api.required' => 1, - 'title' => 'Total Payment Amount', + 'title' => ts('Total Payment Amount'), 'type' => CRM_Utils_Type::T_FLOAT, ], 'payment_processor_id' => [ - 'title' => 'Payment Processor ID', + 'title' => ts('Payment Processor ID'), 'type' => CRM_Utils_Type::T_INT, 'description' => ts('Payment processor ID - required for payment processor payments'), ], 'id' => [ - 'title' => 'Payment ID', + 'title' => ts('Payment ID'), 'type' => CRM_Utils_Type::T_INT, 'api.aliases' => ['payment_id'], ], 'trxn_date' => [ - 'title' => 'Cancel Date', + 'title' => ts('Cancel Date'), 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, ], ]; -- 2.25.1