$response->addCommand(newMessageCommand('There was a problem with the request payload of the automatic interface translation.',NULL,['type'=>'error']));
return$response;
}
// We need to reconstruct the 'translations' part of the form for this
// specific string. This structure needs to match what
// TranslateEditForm::buildForm creates.
$form_element_to_replace=[];
// Get the source string to determine its characteristics (e.g., plural).
// The original form uses $this->translateFilterLoadStrings(), which is
// protected. We can use the locale storage to get the string by
// string_row_id. The sources are not contained if translating pages after
// page 1 due to how the form gets rebuilt, so this is the most reliable
$response->addCommand(newMessageCommand('The string we are trying to translate for the automatic interface translation could not be found.',NULL,['type'=>'error']));
return$response;
}
// Get the first database result (which will be the one matching the ID if
$response->addCommand(newMessageCommand('The string we are trying to translate for the automatic interface translation does not exist anymore.',NULL,['type'=>'error']));