Feature #67909
closedAdd a hook to DataHandler - localize - translateToMessage
100%
Description
By adding a new hook to the localize function, translateToMessage processing we would be able to use external translation services and speed-up translation of the content and even add a custom transliteration functions that would handle various content transformations. I've already created an extension that uses this successfully.
Attaching a hook from extension would be as easy as (ext_localconf.php) :
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processTranslateToClass'][] = 'EXT:yourextension/class.tx_yourextension_tcemain.php:tx_yourextension_tcemain'
and then in the extension class:
class tx_yourextension_tcemain { function processTranslateTo_copyAction(&$content, $lang) { // Do something with content (translate, transliterate etc) } }
Patch is attached.
Files
Updated by Gerrit Code Review over 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40920
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40920
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40920
Updated by Alexander Opitz over 9 years ago
- Target version changed from 6.2.14 to 7.4 (Backend)
Features won't go into 6.2 branch.
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Benni Mack about 9 years ago
- Target version changed from 7 LTS to 8 LTS
Updated by Gerrit Code Review about 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40920
Updated by Gerrit Code Review almost 8 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/40920
Updated by Gerrit Code Review almost 8 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/40920
Updated by Gerrit Code Review almost 8 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/40920
Updated by Gerrit Code Review almost 8 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/40920
Updated by Goran Medakovic almost 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8fe959735d55239222eba48c9eb3978551bd30b8.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed
Updated by Tymoteusz Motylewski over 6 years ago
- Related to Bug #84844: Additional parameter(record field) needed for processTranslateTo_copyAction function added