diff --git a/wp-rest/Controller/AuthorizeIPN.php b/wp-rest/Controller/AuthorizeIPN.php index 3f8cf64c9cb6216579366c928715adf0f731235d..4cd9da9a97786f3176f55ec59c2528a77b774554 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 0aaac0513b64798edf99cb6552e36f7167ff163e..5b5c38004525287b69024d51ea378cb5615f60bc 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();