---
title: "Feature: #67909 - Add hook to DataHandler - localize - translateToMessage"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-67909"
source: "Changelog/8.5/Feature-67909-AddHookToDataHandler-Localize-TranslateToMessage.rst"
modified: "2026-09-14T09:47:36+00:00"
---

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

See [forge#67909](https://forge.typo3.org/issues/67909)

## Description

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.

## Impact

A new hook is available at:

```php
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processTranslateToClass']
```

Implement it for example as follows:

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

## Note

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