$form_state->setErrorByName("domain][$langcode",$this->t('The domain for %language may only contain the domain name, not a protocol and/or port.',array('%language'=>$name)));
$form_state->setErrorByName("domain][$langcode",$this->t('The domain for %language may only contain the domain name, not a trailing slash, protocol and/or port.',['%language'=>$language->getName()]));
$this->assertRaw(t('The domain for %language may only contain the domain name, not a trailing slash, protocol and/or port.',['%language'=>'Italian']));