Translate Exception message
This commit is contained in:
parent
53dac1d8e3
commit
44042634e6
|
@ -33,7 +33,7 @@ class MarketingChannels {
|
|||
*/
|
||||
public function register( MarketingChannelInterface $channel ): void {
|
||||
if ( isset( $this->registered_channels[ $channel->get_slug() ] ) ) {
|
||||
throw new Exception( 'Marketing channel cannot be registered because there is already a channel registered with the same slug!' );
|
||||
throw new Exception( __( 'Marketing channel cannot be registered because there is already a channel registered with the same slug!', 'woocommerce' ) );
|
||||
}
|
||||
|
||||
$this->registered_channels[ $channel->get_slug() ] = $channel;
|
||||
|
|
Loading…
Reference in New Issue