Make pui error translatable

This commit is contained in:
dinamiko 2022-05-10 12:42:41 +02:00
parent b7413b9adf
commit b9dc98eefc

View file

@ -335,7 +335,10 @@ class PayUponInvoice {
exit; exit;
} }
echo '<div class="notice notice-error"><p>Could not enable gateway because Pay upon invoice is not active on PayPal.</p></div>'; printf(
'<div class="notice notice-error"><p>%1$s</p></div>',
esc_html__( 'Could not enable gateway because Pay upon invoice is not active on PayPal.', 'woocommerce-paypal-payments' )
);
} }
} }
); );