diff --git a/wp-rest/Controller/AuthorizeIPN.php b/wp-rest/Controller/AuthorizeIPN.php index 3f8cf64..4cd9da9 100644 --- a/wp-rest/Controller/AuthorizeIPN.php +++ b/wp-rest/Controller/AuthorizeIPN.php @@ -71,7 +71,7 @@ public function get_item( $request ) { 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 0aaac05..5b5c380 100644 --- a/wp-rest/Controller/PayPalIPN.php +++ b/wp-rest/Controller/PayPalIPN.php @@ -82,7 +82,7 @@ public function get_item( $request ) { 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();