From 3b514e090c758ce02db5697d4818abee5a1dbd63 Mon Sep 17 00:00:00 2001 From: Andrei Mondoc <andreimondoc@gmail.com> Date: Wed, 26 Jun 2019 00:03:35 +0100 Subject: [PATCH] make strings translatable Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com> --- wp-rest/Controller/AuthorizeIPN.php | 2 +- wp-rest/Controller/PayPalIPN.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-rest/Controller/AuthorizeIPN.php b/wp-rest/Controller/AuthorizeIPN.php index 3f8cf64c9c..4cd9da9a97 100644 --- a/wp-rest/Controller/AuthorizeIPN.php +++ b/wp-rest/Controller/AuthorizeIPN.php @@ -71,7 +71,7 @@ class AuthorizeIPN extends Base { try { if ( ! method_exists( $authorize_IPN, 'main' ) || ! $this->instance_of_crm_base_ipn( $authorize_IPN ) ) - return $this->civi_rest_error( get_class( $authorize_IPN ) . ' must implement a "main" method.' ); + return $this->civi_rest_error( sprintf( __( '%s must implement a "main" method.', 'civicrm' ), get_class( $authorize_IPN ) ) ); $result = $authorize_IPN->main(); diff --git a/wp-rest/Controller/PayPalIPN.php b/wp-rest/Controller/PayPalIPN.php index 0aaac0513b..5b5c380045 100644 --- a/wp-rest/Controller/PayPalIPN.php +++ b/wp-rest/Controller/PayPalIPN.php @@ -82,7 +82,7 @@ class PayPalIPN extends Base { try { if ( ! method_exists( $paypal_IPN, 'main' ) || ! $this->instance_of_crm_base_ipn( $paypal_IPN ) ) - return $this->civi_rest_error( get_class( $paypal_IPN ) . ' must implement a "main" method.' ); + return $this->civi_rest_error( sprintf( __( '%s must implement a "main" method.', 'civicrm' ), get_class( $paypal_IPN ) ) ); $result = $paypal_IPN->main(); -- GitLab