I’ve added new fields to the provider settings form to make the Disclaimer notification configurable. You can now choose whether to display the notification and customize its type, title, and message. The message is also translatable.
I created a new service to check whether the translation is an ec_etranslation job and to build the warning message. I also created a block plugin to display the message when needed.
If you'd like to use the disclaimer, you can either place the block in the appropriate location or add the message from a preprocess function, like this:
if ($translationHelper->isEcEtranslationJob($comment)) {
$variables['content']['content']['notification'] = $translationHelper->buildWarningMessage($comment, $sourceLanguage);
}
I plan to enhance the solution by allowing the message type and text to be configurable.
Hello, I had the same problem with some characters. I have set the font-family and created a patch to fix the character encoding.
Hello,
#5
📌
Automated Drupal 10 compatibility fixes
RTBC
patch kills the widget block.
Do not delete the parameters: $build['content'], $build['#derivative_plugin_id'], otherwise the widget form returns without the select:
if (!$content || !$derivative_plugin_id) {
return $content;
}
It works fine with automated fix #2 📌 Automated Drupal 10 compatibility fixes RTBC .
It works for me.
Hello,
here is the fix translate link patch.