Skip to content

Commit

Permalink
Merge pull request #2 from mecachisenros/translatable-strings
Browse files Browse the repository at this point in the history
make strings translatable
  • Loading branch information
christianwach authored Jun 26, 2019
2 parents 4bb4b0f + d565d3d commit 27d7eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-rest/Controller/AuthorizeIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion wp-rest/Controller/PayPalIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 27d7eaa

Please sign in to comment.