Feature: #67909 - Add hook to DataHandler - localize - translateToMessage

See forge#67909


By introducing a new hook to the localize() function (the translateToMessage part in particular) you are now able to use external translation services and speed-up translation of the content and even add a custom transliteration function that would handle various content transformations.


A new hook is available at:


Implement it for example as follows:

class YourHookClass {
        public function processTranslateTo_copyAction(&$content, $lang, $dataHandler, $fieldName) {
                // Do something with content (translate, transliterate etc)


Since Version 8.7.16 hooks now get a fourth parameter for the currently processed fieldname.