Translate Exception message

This commit is contained in:
Nima 2022-12-28 13:28:43 +00:00
parent 53dac1d8e3
commit 44042634e6
1 changed files with 1 additions and 1 deletions

View File

@ -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;