Changing the language code for an existing language effectively invalidates
everything that is already stored within that language and thus is not a useful
operation. Changing the country code or locale should be compatible with
existing phrases or contents and thus is still allowed.
->description('wcf.acp.language.code.description')
->maximumLength(20)
->required()
+ ->immutable($this->form->getFormMode() === IFormDocument::FORM_MODE_UPDATE)
->addValidator(new FormFieldValidator('unique', function (TextFormField $formField) {
if ($formField->getValidationErrors() !== []) {
return;